Use correct function to iterate dict

This commit is contained in:
bom 2022-12-19 12:14:42 +01:00
parent 4568f628d4
commit a8ff257a9b

View file

@ -23,7 +23,7 @@ def add_c4k_mixin_config(config,
def generate_clojure_map(template_dict): def generate_clojure_map(template_dict):
clojure_map_str = '{' clojure_map_str = '{'
for key, value in template_dict: for key, value in template_dict.items():
clojure_map_str += f':{key} {value}\n' clojure_map_str += f':{key} {value}\n'
clojure_map_str += '}' clojure_map_str += '}'
return clojure_map_str return clojure_map_str