Merge "Return body output after given status reached"

This commit is contained in:
Jenkins 2014-02-07 22:27:39 +00:00 committed by Gerrit Code Review
commit bcb2e9a187

View File

@ -177,7 +177,7 @@ class OrchestrationClient(rest_client.RestClient):
stack_name = body['stack_name']
stack_status = body['stack_status']
if stack_status == status:
return
return body
if fail_regexp.search(stack_status):
raise exceptions.StackBuildErrorException(
stack_identifier=stack_identifier,