Skip to content

Commit 21b7c51

Browse files
committed
Address review comments
1 parent 1c7cee4 commit 21b7c51

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/confcom/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Release History
44
===============
55

6+
1.6.0
7+
++++++
8+
* Added confcom containers from_image command to generate container definitions from an image reference
9+
610
1.5.0
711
++++++
812
* restored the behaviour of --upload-fragment in acifragmentgen to attach to first image in input

src/confcom/azext_confcom/_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334
"confcom containers from_image"
335335
] = """
336336
type: command
337-
short-summary: Create a Security Policy Container Definition based on a Radius app template.
337+
short-summary: Create a Security Policy Container Definition based on an image reference.
338338
339339
parameters:
340340
- name: --platform

src/confcom/azext_confcom/command/containers_from_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
from azext_confcom.lib.containers import from_image as lib_containers_from_image
99

1010

11-
def containers_from_image(image: str, platform: str) -> str:
12-
return print(json.dumps(lib_containers_from_image(image, platform)))
11+
def containers_from_image(image: str, platform: str) -> None:
12+
print(json.dumps(lib_containers_from_image(image, platform)))

src/confcom/azext_confcom/lib/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from azext_confcom.lib.platform import ACI_MOUNTS
99

1010

11-
def from_image(image: str, platform: str) -> str:
11+
def from_image(image: str, platform: str) -> dict:
1212

1313
mounts = {
1414
"aci": [asdict(mount) for mount in ACI_MOUNTS],

src/confcom/azext_confcom/lib/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_image_layers(image: str) -> list[str]:
3232
result = subprocess.run(
3333
[binary_path.as_posix(), "-d", "roothash", "-i", image],
3434
stdout=subprocess.PIPE,
35-
stderr=subprocess.PIPE,
35+
stderr=subprocess.DEVNULL,
3636
check=True,
3737
text=True,
3838
)

0 commit comments

Comments
 (0)