From 1e9d93a9dcb0c19738c1559a8118b15241045e74 Mon Sep 17 00:00:00 2001 From: Serg Melikyan Date: Wed, 27 Mar 2013 20:25:37 +0400 Subject: [PATCH] Fix issue for result of deleted environments --- portas/portas/common/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portas/portas/common/service.py b/portas/portas/common/service.py index 238304e..744a342 100644 --- a/portas/portas/common/service.py +++ b/portas/portas/common/service.py @@ -80,7 +80,7 @@ def handle_result(msg): 'orchestration engine:\n{0}'.format(msg.body))) environment_result = anyjson.deserialize(msg.body) - if environment_result['deleted']: + if 'deleted' in environment_result: log.debug(_('Result for environment {0} is dropped. ' 'Environment is deleted'.format(environment_result['id'])))