Merge "get inappropriate information while failed to create host aggregates"

This commit is contained in:
Jenkins 2017-03-22 11:31:47 +00:00 committed by Gerrit Code Review
commit da3abf8d0a
1 changed files with 6 additions and 1 deletions

View File

@ -181,6 +181,9 @@ class CreateAggregateWorkflow(workflows.Workflow):
success_url = constants.AGGREGATES_INDEX_URL
default_steps = (SetAggregateInfoStep, AddHostsToAggregateStep)
def format_status_message(self, message):
return message % self.context['name']
def handle(self, request, context):
try:
self.object = \
@ -199,7 +202,9 @@ class CreateAggregateWorkflow(workflows.Workflow):
except Exception:
exceptions.handle(
request, _('Error adding Hosts to the aggregate.'))
return False
# Host aggregate itself has been created successfully,
# so we return True here
return True
return True