Skip to content

Commit

Permalink
Fix append and prepend for the MpasConfigParser
Browse files Browse the repository at this point in the history
We need to mark the combined config options as invalid after
appending or prepending.
  • Loading branch information
xylar committed Sep 29, 2023
1 parent d7dd750 commit e38b706
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conda_package/mpas_tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ def append(self, other):
self._configs.update(other._configs)
self._user_config.update(other._user_config)
self._comments.update(other._comments)
self.combined = None
self.combined_comments = None
self.sources = None

def prepend(self, other):
"""
Expand All @@ -455,6 +458,9 @@ def prepend(self, other):
comments = dict(other._comments)
comments.update(self._comments)
self._comments = comments
self.combined = None
self.combined_comments = None
self.sources = None

def __getitem__(self, section):
"""
Expand Down

0 comments on commit e38b706

Please sign in to comment.