~cjwatson/turku-charms/turku-agent-charm-fix-systemd-harder

« back to all changes in this revision

Viewing changes to files/turku-agent/turku_agent/utils.py

  • Committer: Tom Haddon
  • Date: 2015-05-05 09:10:16 UTC
  • mfrom: (2.1.1 cherrypick-iteration-fix)
  • Revision ID: tom.haddon@canonical.com-20150505091016-ie5t3uwu317lxkyc
[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:
193
193
        sources_config = dict_merge(sources_config, j)
194
194
 
195
195
    # Check for required sources options
196
 
    for s in sources_config:
 
196
    for s in sources_config.keys():
197
197
        if 'path' not in sources_config[s]:
198
198
            del sources_config[s]
199
199