Skip to content

Commit

Permalink
Merge pull request #3 from badkapitan/master
Browse files Browse the repository at this point in the history
resolution of issue #2
  • Loading branch information
staffanm committed Jan 24, 2016
2 parents 191e05c + f423748 commit 63c8407
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layeredconfig/yamlfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def __init__(self, yamlfilename=None, writable=True, **kwargs):


super(YAMLFile, self).__init__(**kwargs)
if yamlfilename == None and 'parent' in kwargs and hasattr(kwargs['parent'], 'yamlfilename'):
yamlfilename = kwargs['parent'].yamlfilename
if 'defaults' in kwargs:
self.source = kwargs['defaults']
else:
Expand Down

0 comments on commit 63c8407

Please sign in to comment.