Browse Source

Merge "dict_object.keys() is not required for *in* operator"

Zuul 2 months ago
parent
commit
1253de101a

+ 1
- 1
heat-config-docker-compose/install.d/hook-docker-compose.py View File

@@ -98,7 +98,7 @@ def main(argv=sys.argv):
98 98
             for i in ast.literal_eval(input_values.get('env_files')))
99 99
 
100 100
     for file in compose_env_files:
101
-        if file in input_env_files.keys():
101
+        if file in input_env_files:
102 102
             write_input_file(file, input_env_files.get(file))
103 103
 
104 104
     cmd = [

+ 1
- 1
heat-config-json-file/install.d/hook-json-file.py View File

@@ -34,7 +34,7 @@ def main(argv=sys.argv):
34 34
 
35 35
     c = json.load(sys.stdin)['config']
36 36
 
37
-    for fname in c.keys():
37
+    for fname in c:
38 38
         prepare_dir(os.path.dirname(fname))
39 39
         data = c.get(fname)
40 40
         with open(fname, 'w') as json_data_file:

Loading…
Cancel
Save