Merge "Fix status message inside validate_can_perform_action()"

This commit is contained in:
Zuul
2017-12-20 07:41:07 +00:00
committed by Gerrit Code Review

View File

@@ -1261,7 +1261,7 @@ class Instance(BuiltInstance):
elif (self.db_info.task_status != InstanceTasks.NONE and
self.db_info.task_status != InstanceTasks.RESTART_REQUIRED):
status_type = 'task'
status = self.db_info.task_status
status = self.db_info.task_status.action
elif not self.datastore_status.status.action_is_allowed:
status = self.status
elif Backup.running(self.id):