Load Gitops configuration properly in OduWorkflow class
Change-Id: Id061c4e4da1b8f5bb665d6bfb1d9bb33d192a520
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_lcm/data_utils/lcm_config.py b/osm_lcm/data_utils/lcm_config.py
index 5ad9bd1..b88c55d 100644
--- a/osm_lcm/data_utils/lcm_config.py
+++ b/osm_lcm/data_utils/lcm_config.py
@@ -29,6 +29,7 @@
super().__init__()
self.set_from_dict(config_dict)
self.set_auto_env("OSMLCM")
+ self.set_auto_env("OSM")
def get(self, key, defaultValue):
return self.to_dict()[key]
@@ -206,10 +207,10 @@
class GitopsConfig(OsmConfigman):
- repo_base_url: str = None
- repo_user: str = None
+ git_base_url: str = None
+ user: str = None
pubkey: str = None
- mgmtcluster_kubeconfig: str = "/etc/osm/mgmtcluster-kubeconfig.yaml"
+ mgmtcluster_kubeconfig: str = None
loglevel: str = "DEBUG"
logfile: str = None
logger_name: str = None