aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-10-06 08:26:39 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-10-06 08:38:20 +0200
commit62b12b859c0172c737f70493b3052dcef47f96f7 (patch)
tree49e6fb29bac5b6e95dab8686a271ad576de6d83b /functest/core
parentd7c5419ed8d3dcdb59f4f5f254de0c7bb7a0aec6 (diff)
Rename IMG_PROP to IMAGE_PROPERTIES
Any other env vars are reduced. Change-Id: Ic2c37d6efd543603a2495f9d2621b66d61710a54 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/core')
-rw-r--r--functest/core/singlevm.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/functest/core/singlevm.py b/functest/core/singlevm.py
index c9a8178b9..d1806eb12 100644
--- a/functest/core/singlevm.py
+++ b/functest/core/singlevm.py
@@ -74,10 +74,11 @@ class VmReady1(tenantnetwork.TenantNetwork1):
"""
assert self.cloud
extra_properties = self.extra_properties.copy()
- if env.get('IMG_PROP'):
- extra_properties.update(dict((k.strip(), v.strip()) for k, v in
- (item.split(': ') for item in
- env.get('IMG_PROP').split(','))))
+ if env.get('IMAGE_PROPERTIES'):
+ extra_properties.update(
+ dict((k.strip(), v.strip()) for k, v in (
+ item.split(': ') for item in env.get(
+ 'IMAGE_PROPERTIES').split(','))))
extra_properties.update(
getattr(config.CONF, '{}_extra_properties'.format(
self.case_name), {}))
@@ -109,10 +110,11 @@ class VmReady1(tenantnetwork.TenantNetwork1):
"""
assert self.cloud
extra_alt_properties = self.extra_alt_properties.copy()
- if env.get('IMG_PROP'):
- extra_alt_properties.update(dict((k.strip(), v.strip()) for k, v in
- (item.split(': ') for item in
- env.get('IMG_PROP').split(','))))
+ if env.get('IMAGE_PROPERTIES'):
+ extra_alt_properties.update(
+ dict((k.strip(), v.strip()) for k, v in (
+ item.split(': ') for item in env.get(
+ 'IMAGE_PROPERTIES').split(','))))
extra_alt_properties.update(
getattr(config.CONF, '{}_extra_alt_properties'.format(
self.case_name), {}))