@@ -236,7 +236,7 @@ def _add_rego_boilerplate(self, output: str) -> str:
236236 pretty_print_func (self ._allow_unencrypted_scratch ),
237237 pretty_print_func (self ._allow_capability_dropping ),
238238 )
239- elif self ._platform .startswith ("windows" ):
239+ if self ._platform .startswith ("windows" ):
240240 return config .CUSTOMER_REGO_POLICY_WINDOWS % (
241241 pretty_print_func (self ._api_version ),
242242 pretty_print_func (sanitized_fragments ),
@@ -841,7 +841,9 @@ def load_policy_from_arm_template_str(
841841 or [],
842842 config .ACI_FIELD_CONTAINERS_MOUNTS : process_mounts (image_properties , volumes )
843843 + process_configmap (image_properties ),
844- config .ACI_FIELD_CONTAINERS_EXEC_PROCESSES : exec_processes + get_debug_mode_exec_procs (debug_mode , platform ),
844+ config .ACI_FIELD_CONTAINERS_EXEC_PROCESSES : (
845+ exec_processes + get_debug_mode_exec_procs (debug_mode , platform )
846+ ),
845847 config .ACI_FIELD_CONTAINERS_SIGNAL_CONTAINER_PROCESSES : [],
846848 config .ACI_FIELD_CONTAINERS_ALLOW_STDIO_ACCESS : not disable_stdio ,
847849 config .ACI_FIELD_CONTAINERS_SECURITY_CONTEXT : case_insensitive_dict_get (
@@ -1081,7 +1083,9 @@ def load_policy_from_json(
10811083 container_properties , config .ACI_FIELD_TEMPLATE_COMMAND
10821084 ) or [],
10831085 config .ACI_FIELD_CONTAINERS_MOUNTS : mounts ,
1084- config .ACI_FIELD_CONTAINERS_EXEC_PROCESSES : exec_processes + get_debug_mode_exec_procs (debug_mode , platform ),
1086+ config .ACI_FIELD_CONTAINERS_EXEC_PROCESSES : (
1087+ exec_processes + get_debug_mode_exec_procs (debug_mode , platform )
1088+ ),
10851089 config .ACI_FIELD_CONTAINERS_SIGNAL_CONTAINER_PROCESSES : [],
10861090 config .ACI_FIELD_CONTAINERS_ALLOW_STDIO_ACCESS : not disable_stdio ,
10871091 config .ACI_FIELD_CONTAINERS_SECURITY_CONTEXT : case_insensitive_dict_get (
@@ -1351,7 +1355,9 @@ def load_policy_from_virtual_node_yaml_str(
13511355 config .ACI_FIELD_TEMPLATE_ENTRYPOINT : command ,
13521356 config .ACI_FIELD_CONTAINERS_COMMAND : args ,
13531357 config .ACI_FIELD_CONTAINERS_MOUNTS : mounts ,
1354- config .ACI_FIELD_CONTAINERS_EXEC_PROCESSES : exec_processes + get_debug_mode_exec_procs (debug_mode , platform ),
1358+ config .ACI_FIELD_CONTAINERS_EXEC_PROCESSES : (
1359+ exec_processes + get_debug_mode_exec_procs (debug_mode , platform )
1360+ ),
13551361 config .ACI_FIELD_CONTAINERS_SIGNAL_CONTAINER_PROCESSES : [],
13561362 config .ACI_FIELD_CONTAINERS_ALLOW_STDIO_ACCESS : not disable_stdio ,
13571363 config .ACI_FIELD_CONTAINERS_SECURITY_CONTEXT : security_context ,
0 commit comments