Skip to content

Commit

Permalink
Merge pull request #1096 from MetPX/issue982_2_statehost_cleanup_broken
Browse files Browse the repository at this point in the history
issue #982 detail in cleanup was not working when statehost set
  • Loading branch information
petersilva authored Jun 6, 2024
2 parents 3211eff + 71e526e commit 01e9904
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sarracenia/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ def _read_configs(self):
cfgbody.parse_file(cfg,c)
cfgbody.finalize(c, cfg)
self.configs[c][cbase]['options'] = cfgbody

# ensure there is a known value of instances to run.
if c in ['poll', 'post', 'cpost']:
if hasattr(cfgbody,
Expand Down Expand Up @@ -1857,6 +1858,8 @@ def cleanup(self) -> bool:
if self.please_stop:
break

(c, cfg) = f.split(os.sep)

if self.configs[c][cfg]['status'] in self.status_active:
#logger.warning( f"cannot clean running configuration, skipping {c}/{cfg}")
continue
Expand Down

0 comments on commit 01e9904

Please sign in to comment.