summaryrefslogtreecommitdiffstats
path: root/app/discover/configuration.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/discover/configuration.py')
-rw-r--r--app/discover/configuration.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/discover/configuration.py b/app/discover/configuration.py
index c7bc0c0..9ec8f96 100644
--- a/app/discover/configuration.py
+++ b/app/discover/configuration.py
@@ -47,6 +47,10 @@ class Configuration(metaclass=Singleton):
def get_env_name(self):
return self.env_name
+ def get_env_type(self):
+ return 'OpenStack' if 'environment_type' not in self.environment \
+ else self.environment['environment_type']
+
def update_env(self, values):
self.collection.update_one({"name": self.env_name},
{'$set': MongoAccess.encode_mongo_keys(values)})