summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-01-23 16:57:23 +0000
committerGerrit Code Review <review@openstack.org>2018-01-23 16:57:23 +0000
commit6fbbac5ba7496eb2448a674053802a924741493e (patch)
tree42ef7c09bfe40ed2a27701b2f8bd786d67801071
parent13640134483b578505427695b3b0dc1ee9ba612e (diff)
parent569d1dba07ab196c17d63ba17d74bf8abd11f975 (diff)
Merge "modify the wrong list name of schedule_unit to interval_uint Closes-Bug: #1744625"
-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