Skip to content

Commit

Permalink
slight adjustment to disable check for when no configs specified
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Oct 30, 2024
1 parent 51a3663 commit 3802fe3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions sarracenia/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2237,16 +2237,17 @@ def start(self):
has_disabled_config = False

# if any configs are disabled, don't start any
for f in self.filtered_configurations:
(c, cfg) = f.split(os.sep)
if not self._action_all_configs:
for f in self.filtered_configurations:
(c, cfg) = f.split(os.sep)

if self.configs[c][cfg]['status'] == 'disabled':
has_disabled_config = True
logger.error(f"Config {c}/{cfg} is disabled. It must be enabled before starting.")
if self.configs[c][cfg]['status'] == 'disabled':
has_disabled_config = True
logger.error(f"Config {c}/{cfg} is disabled. It must be enabled before starting.")

if has_disabled_config:
logger.error("No configs have been started due to disabled configurations.")
return
if has_disabled_config:
logger.error("No configs have been started due to disabled configurations.")
return

pcount = 0
for f in self.filtered_configurations:
Expand Down

0 comments on commit 3802fe3

Please sign in to comment.