diff options
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/environment.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/environment.py b/libs/environment.py index f78f3d1..7e9027f 100644 --- a/libs/environment.py +++ b/libs/environment.py @@ -14,6 +14,7 @@ class Environment(object): os_identity_api_version, os_image_api_version, elements_path, + manifests_path, extra_envs={}): if os_auth_url is None or \ os_project_name is None or \ @@ -24,7 +25,8 @@ class Environment(object): os_user_domain_name is None or \ os_identity_api_version is None or \ os_image_api_version is None or \ - elements_path is None: + elements_path is None or \ + manifests_path is None: print("All required environment arguments must have a value. You passed in:" + \ "\nos_auth_url = " + str(os_auth_url) + \ "\nos_project_name = " + str(os_project_name) + \ @@ -35,7 +37,8 @@ class Environment(object): "\nos_user_domain_name = " + str(os_user_domain_name) + \ "\nos_identity_api_version = " + str(os_identity_api_version) + \ "\nos_image_api_version = " + str(os_image_api_version) + \ - "\nelements_path = " + str(elements_path)) + "\nelements_path = " + str(elements_path) + \ + "\nmanifests_path = " + str(manifests_path)) sys.exit(1) else: self.os_auth_url = os_auth_url @@ -48,6 +51,7 @@ class Environment(object): self.os_identity_api_version = os_identity_api_version self.os_image_api_version = os_image_api_version self.elements_path = elements_path + self.manifests_path = manifests_path self.extra_envs = {} for key, value in [(k, v) for (k, v) in extra_envs.items() if v]: self.extra_envs[key] = value |
