Merge "Add missing translation marker to clear_node_target_power_state"

This commit is contained in:
Jenkins 2016-06-29 10:41:02 +00:00 committed by Gerrit Code Review
commit 9f0f37a122
1 changed files with 3 additions and 2 deletions

View File

@ -763,8 +763,9 @@ class Connection(api.Connection):
query = query.filter(models.Node.target_power_state != sql.null())
nodes = [node['uuid'] for node in query]
query.update({'target_power_state': None,
'last_error': "Pending power operation was aborted "
"due to conductor restart"})
'last_error': _("Pending power operation was "
"aborted due to conductor "
"restart")})
if nodes:
nodes = ', '.join(nodes)