Place the error message to correct position

Modify the error message 'You must define nova network id to restore'
to be around the 'Nova Network ID' field.

Change-Id: Ic732a33c2fd754afa6d1d796b8d9e6f1e382c135
Closes-Bug: #1663888
This commit is contained in:
qiaomin 2017-02-11 22:40:54 +08:00
parent 40f832375f
commit f702a606ca
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class ActionConfigurationAction(workflows.Action):
def _check_nova_network_id(self, cleaned_data):
if not cleaned_data.get('nova_network_id'):
msg = _("You must define nova network id to restore.")
self._errors['nova_inst_id'] = self.error_class([msg])
self._errors['nova_network_id'] = self.error_class([msg])
def _check_nova_inst_id(self, cleaned_data):
if not cleaned_data.get('nova_inst_id'):