aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolas Hermanns <nikolas.hermanns@ericsson.com>2016-04-06 11:47:44 +0200
committerJonas Bjurel <jonas.bjurel@ericsson.com>2016-04-10 18:49:51 +0200
commitc14188252b4dec575f3349e0fe5eaf065c0820da (patch)
treecba90487ecbc7357ef1b17e5a58d7ac4e51b4797
parent875d2f23d76d4dfb4f962f578aaae7bc089af5a7 (diff)
Fix for breaking deployment.
If no vm definition is give, nothing should happen. Change-Id: I1fd01ef43fa3e5eab4a794c63254eaf6d80fc951
-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