dict_object.keys() is not required for *in* operator
cleanup of .keys() from dict_object.keys() *in* operator Change-Id: I38c2a0086f55661d2426b42721c406ad58ea9c58
This commit is contained in:
parent
828fd1e063
commit
baf746afb8
@ -98,7 +98,7 @@ def main(argv=sys.argv):
|
|||||||
for i in ast.literal_eval(input_values.get('env_files')))
|
for i in ast.literal_eval(input_values.get('env_files')))
|
||||||
|
|
||||||
for file in compose_env_files:
|
for file in compose_env_files:
|
||||||
if file in input_env_files.keys():
|
if file in input_env_files:
|
||||||
write_input_file(file, input_env_files.get(file))
|
write_input_file(file, input_env_files.get(file))
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
|
@ -34,7 +34,7 @@ def main(argv=sys.argv):
|
|||||||
|
|
||||||
c = json.load(sys.stdin)['config']
|
c = json.load(sys.stdin)['config']
|
||||||
|
|
||||||
for fname in c.keys():
|
for fname in c:
|
||||||
prepare_dir(os.path.dirname(fname))
|
prepare_dir(os.path.dirname(fname))
|
||||||
data = c.get(fname)
|
data = c.get(fname)
|
||||||
with open(fname, 'w') as json_data_file:
|
with open(fname, 'w') as json_data_file:
|
||||||
|
Loading…
Reference in New Issue
Block a user