File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/confcom/azext_confcom/command Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,17 @@ def containers_from_radius(
7575 ]
7676
7777 image_config = get_image_config (image )
78- image_config ["env_rules" ] += [
78+
79+ env_rules = image_config .pop ("env_rules" , [])
80+ env_rules += [
7981 {
8082 "pattern" : f'{ k } ={ v ["value" ]} ' ,
8183 "strategy" : "string" ,
8284 "required" : False ,
8385 }
8486 for k , v in container .get ("env" , {}).items ()
8587 ]
86- image_config [ " env_rules" ] += [
88+ env_rules += [
8789 {
8890 "name" : f"CONNECTIONS_{ k .upper ()} _.+" ,
8991 "value" : ".+" ,
@@ -98,5 +100,6 @@ def containers_from_radius(
98100 "name" : image ,
99101 "layers" : get_image_layers (image ),
100102 ** ({"mounts" : mounts } if mounts else {}),
103+ "env_rules" : env_rules ,
101104 ** image_config ,
102105 })
You can’t perform that action at this time.
0 commit comments