File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/confcom/azext_confcom Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def validate_aci_source(namespace):
3939 namespace .arm_template ,
4040 namespace .image_name ,
4141 namespace .virtual_node_yaml_path ,
42- namespace .container_definitions != [] ,
42+ namespace .container_definitions is not None ,
4343 ])) != 1 :
4444 raise CLIError ("Can only generate CCE policy from one source at a time" )
4545
@@ -75,7 +75,7 @@ def validate_fragment_source(namespace):
7575 if not namespace .generate_import and sum (map (bool , [
7676 namespace .image_name ,
7777 namespace .input_path ,
78- namespace .container_definitions != [] ,
78+ namespace .container_definitions is not None ,
7979 ])) != 1 :
8080 raise CLIError ("Must provide either an image name or an input file to generate a fragment" )
8181
You can’t perform that action at this time.
0 commit comments