mirror of https://git.48k.eu/ogcp
ogcp: add backup boolean field in image update
User can use this boolean field to specify if an backup copy needs to be created before updating an image. This only applies when sending a request to a client (ogClient) supporting this parameter.master v1.1.3
parent
ae3f83b3c3
commit
db68dcea46
|
@ -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'))
|
||||
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue