~fo0bar/turku/turku-agent-encoding

« back to all changes in this revision

Viewing changes to turku_agent/utils.py

[pjdc,r=mthaddon] utils.load_config(): checking required options: iterate on .keys() so we can mutate the original

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
        sources_config = dict_merge(sources_config, json_load_file(file))
209
209
 
210
210
    # Check for required sources options
211
 
    for s in sources_config:
 
211
    for s in sources_config.keys():
212
212
        if 'path' not in sources_config[s]:
213
213
            del sources_config[s]
214
214