Skip to content

Commit e38b706

Browse files
committed
Fix append and prepend for the MpasConfigParser
We need to mark the combined config options as invalid after appending or prepending.
1 parent d7dd750 commit e38b706

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

conda_package/mpas_tools/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ def append(self, other):
430430
self._configs.update(other._configs)
431431
self._user_config.update(other._user_config)
432432
self._comments.update(other._comments)
433+
self.combined = None
434+
self.combined_comments = None
435+
self.sources = None
433436

434437
def prepend(self, other):
435438
"""
@@ -455,6 +458,9 @@ def prepend(self, other):
455458
comments = dict(other._comments)
456459
comments.update(self._comments)
457460
self._comments = comments
461+
self.combined = None
462+
self.combined_comments = None
463+
self.sources = None
458464

459465
def __getitem__(self, section):
460466
"""

0 commit comments

Comments
 (0)