From 3802fe384ba563a8cd38c6fd54c461eb64de5752 Mon Sep 17 00:00:00 2001 From: Peter Silva Date: Wed, 30 Oct 2024 11:19:37 -0400 Subject: [PATCH] slight adjustment to disable check for when no configs specified --- sarracenia/sr.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/sarracenia/sr.py b/sarracenia/sr.py index 93a3b9372..1504d7576 100755 --- a/sarracenia/sr.py +++ b/sarracenia/sr.py @@ -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: