From e38b70612dd68e1382a0e938150f2e1a20e55b6e Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Fri, 29 Sep 2023 18:23:32 +0200 Subject: [PATCH] Fix append and prepend for the MpasConfigParser We need to mark the combined config options as invalid after appending or prepending. --- conda_package/mpas_tools/config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conda_package/mpas_tools/config.py b/conda_package/mpas_tools/config.py index 6d87e9fdc..256bccf05 100644 --- a/conda_package/mpas_tools/config.py +++ b/conda_package/mpas_tools/config.py @@ -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): """ @@ -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): """