diff options
-rw-r--r-- | ogcp/forms/action_forms.py | 1 | ||||
-rw-r--r-- | ogcp/views.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index d1789a7..75ec674 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -152,6 +152,7 @@ class ImageUpdateForm(FlaskForm): ip = HiddenField() os = SelectField(label=_l('Partition'), choices=[]) image = SelectField(label=_l('Image'), choices=[]) + backup = BooleanField(label=_l('Backup')) update = SubmitField(label=_l('Update')) diff --git a/ogcp/views.py b/ogcp/views.py index 316a817..56910d3 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -1186,6 +1186,7 @@ def action_image_update(): 'name': image['name'], 'repository': repository['ip'], 'id': str(image['id']), + 'backup': form.backup.data, # Dummy parameters, not used by ogServer on image update. 'group_id': 0, 'center_id': 0} |