Skip to content

Commit b6816c4

Browse files
committed
[confcom] fix Virtual Node bug
1 parent 608d129 commit b6816c4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/confcom/azext_confcom/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def from_json(
823823
# Start with the customer environment rules
824824
env_rules = (
825825
copy.deepcopy(_INJECTED_CUSTOMER_ENV_RULES)
826-
if container_json["platform"].startswith("linux") else dict()
826+
if container_json["platform"].startswith("linux") else []
827827
)
828828
# If is_vn2, add the VN2 environment rules
829829
if is_vn2:

src/confcom/azext_confcom/security_policy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ def __init__(
158158
container_image.parse_all_parameters_and_variables(self.all_params, self.all_vars)
159159
container_results.append(container_image)
160160

161+
# Default platform if no containers were present to set it
162+
if self._platform is None:
163+
self._platform = "linux/amd64"
164+
161165
self._images = container_results
162166

163167
def __enter__(self) -> Any:

0 commit comments

Comments
 (0)