Skip to content

Commit 2125c45

Browse files
Update src/aks-preview/azext_aks_preview/_validators.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8de68a8 commit 2125c45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/aks-preview/azext_aks_preview/_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ def validate_nat_gateway_v2_params(namespace):
11781178
getattr(namespace, 'nat_gateway_outbound_ip_ids', None),
11791179
getattr(namespace, 'nat_gateway_outbound_ip_prefix_ids', None),
11801180
]
1181-
if any(p is not None for p in v2_params):
1181+
if any(p not in (None, [], {}) for p in v2_params):
11821182
outbound_type = getattr(namespace, 'outbound_type', None)
11831183
if outbound_type is not None and outbound_type != 'managedNATGatewayV2':
11841184
raise InvalidArgumentValueError(

0 commit comments

Comments
 (0)