[CORD-2988] Fixed deletion message
Change-Id: I6ac9850f5003df4fd54fa00a2752d1783f30c831
diff --git a/src/web_server/main.py b/src/web_server/main.py
index 4483053..f5d8043 100644
--- a/src/web_server/main.py
+++ b/src/web_server/main.py
@@ -38,7 +38,10 @@
def execute_tosca(self, recipe):
self.parser.execute()
- response_text = "Created models: %s" % str(self.parser.ordered_models_name)
+ if self.parser.delete:
+ response_text = "Deleted models: %s" % str(self.parser.ordered_models_name)
+ else:
+ response_text = "Created models: %s" % str(self.parser.ordered_models_name)
return response_text
def errorCallback(self, failure, request):