Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
need one more copy
Browse files Browse the repository at this point in the history
The del on config.sections is causing sections to shrink while running
the for loop.
  • Loading branch information
gtmanfred committed Nov 21, 2015
1 parent 0a66c7f commit 280d589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions supernova/config.py
Expand Up @@ -17,9 +17,9 @@
Takes care of the basic setup of the config files and does some preliminary
sanity checks
"""
import copy
import os


from configobj import ConfigObj


Expand Down Expand Up @@ -82,7 +82,7 @@ def create_dynamic_configs(config, region_name='OS_REGION_NAME',
if not isinstance(config, ConfigObj):
raise ValueError("config should be ConfigObj, not %s" % type(config))

sections = config.sections
sections = copy.copy(config.sections)

for section in sections:

Expand Down

0 comments on commit 280d589

Please sign in to comment.