summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryang zhenming <yangzhenming004@163.com>2018-01-21 21:30:51 -0800
committeryang zhenming <yangzhenming004@163.com>2018-01-21 21:31:33 -0800
commit569d1dba07ab196c17d63ba17d74bf8abd11f975 (patch)
tree08c4080ffbc1a2283d1113eeb5a8412a0ca2c622
parent6b78e6ddba156f849999a54716b292c2a6e87b6e (diff)
modify the wrong list name of schedule_unit to interval_uint
Notes
Notes (review): Code-Review+2: Saad Zaher <eng.szaher@gmail.com> Workflow+1: Saad Zaher <eng.szaher@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 23 Jan 2018 16:57:23 +0000 Reviewed-on: https://review.openstack.org/536207 Project: openstack/freezer-web-ui Branch: refs/heads/master
-rw-r--r--disaster_recovery/jobs/workflows/create.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/disaster_recovery/jobs/workflows/create.py b/disaster_recovery/jobs/workflows/create.py
index 3463b21..82728c0 100644
--- a/disaster_recovery/jobs/workflows/create.py
+++ b/disaster_recovery/jobs/workflows/create.py
@@ -161,13 +161,13 @@ class InfoConfigurationAction(workflows.Action):
161 161
162 if (cleaned_data.get('schedule_start_date') and 162 if (cleaned_data.get('schedule_start_date') and
163 cleaned_data.get('schedule_end_date')) and\ 163 cleaned_data.get('schedule_end_date')) and\
164 not cleaned_data.get('schedule_unit'): 164 not cleaned_data.get('interval_uint'):
165 msg = _("Please provide this value.") 165 msg = _("Please provide this value.")
166 self._errors['schedule_unit'] = self.error_class([msg]) 166 self._errors['interval_uint'] = self.error_class([msg])
167 167
168 if (cleaned_data.get('schedule_end_date') and 168 if (cleaned_data.get('schedule_end_date') and
169 not cleaned_data.get('schedule_start_date')) and\ 169 not cleaned_data.get('schedule_start_date')) and\
170 not cleaned_data.get('schedule_unit'): 170 not cleaned_data.get('interval_uint'):
171 msg = _("Please provide this value.") 171 msg = _("Please provide this value.")
172 self._errors['schedule_start_date'] = self.error_class([msg]) 172 self._errors['schedule_start_date'] = self.error_class([msg])
173 173