aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/environments
diff options
context:
space:
mode:
authorNikolas Hermanns <nikolas.hermanns@ericsson.com>2016-04-06 11:47:44 +0200
committerNikolas Hermanns <nikolas.hermanns@ericsson.com>2016-04-06 11:52:20 +0200
commit198a3d306d8f97d3c896a5f3380aba4b4a2b3cf3 (patch)
tree540239f1c223d2d0f60e89711c94c6b22426aee8 /deploy/environments
parent27120b363ddd3df5474314204def6607871cad6e (diff)
Fix for breaking deployment.
If no vm definition is give, nothing should happen. Change-Id: I1fd01ef43fa3e5eab4a794c63254eaf6d80fc951
Diffstat (limited to 'deploy/environments')
-rw-r--r--deploy/environments/execution_environment.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/deploy/environments/execution_environment.py b/deploy/environments/execution_environment.py
index 2a4e39e08..af0e130dd 100644
--- a/deploy/environments/execution_environment.py
+++ b/deploy/environments/execution_environment.py
@@ -51,6 +51,8 @@ class ExecutionEnvironment(object):
delete(file)
def overwrite_xml(self, vm_xml, vm_definition_overwrite):
+ if not vm_definition_overwrite:
+ return
for key, value in vm_definition_overwrite.iteritems():
if key == 'attribute_equlas':
continue