From 3c615107efa7ce08526322f5cfc64517ecf95274 Mon Sep 17 00:00:00 2001 From: David Parker Date: Fri, 15 Nov 2024 09:35:06 +0000 Subject: [PATCH] [patch] Fix handling no --additional-configs flag --- python/src/mas/cli/install/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/mas/cli/install/app.py b/python/src/mas/cli/install/app.py index 1ce66f73c..6c43ffc2b 100644 --- a/python/src/mas/cli/install/app.py +++ b/python/src/mas/cli/install/app.py @@ -774,7 +774,7 @@ def nonInteractiveMode(self) -> None: elif key == "additional_configs": self.localConfigDir = value # If there is a file named mongodb-system.yaml we will use this as a BYO MongoDB datasource - if path.exists(path.join(self.localConfigDir, "mongodb-system.yaml")): + if self.localConfigDir is not None and path.exists(path.join(self.localConfigDir, "mongodb-system.yaml")): self.setParam("mongodb_action", "byo") self.setParam("sls_mongodb_cfg_file", "/workspace/additional-configs/mongodb-system.yaml")