From f702a606ca6b326caf649ae369bf15df5787d3ac Mon Sep 17 00:00:00 2001 From: qiaomin Date: Sat, 11 Feb 2017 22:40:54 +0800 Subject: [PATCH] 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 --- disaster_recovery/actions/workflows/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disaster_recovery/actions/workflows/action.py b/disaster_recovery/actions/workflows/action.py index 5a0f948..9fc0f97 100644 --- a/disaster_recovery/actions/workflows/action.py +++ b/disaster_recovery/actions/workflows/action.py @@ -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'):