diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-02-10 11:46:06 +0000 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2021-02-10 11:46:06 +0000 |
commit | 3eda3fa68487a81e67f844e01ad7a6edf646d627 (patch) | |
tree | 83473ffed393be7ea096271d692eb157442a0483 /ogcp/forms/action_forms.py | |
parent | 95b28c9403dc33d64b5aa5ee3f41b98da184c1a1 (diff) |
Add UNICAST-DIRECT method to image restore
Previously the only method (in the form select) was "UNICAST". This
patch enables specifying a correct parameter for the underlying script
to fetch the image to be restored.
UNICAST-DIRECT makes the administrator transfer the image through the
network. UNICAST-CACHE indicates the taget pc to search for the image in
its cache partition.
Also redirects to the /scopes when ogserver responds with 200 OK.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r-- | ogcp/forms/action_forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index bc0915a..d85b15d 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -49,7 +49,8 @@ class ImageRestoreForm(FlaskForm): partition = SelectField(label=_('Partition'), choices=[]) image = SelectField(label=_('Image'), choices=[]) method = SelectField(label=_('Method'), - choices=[('UNICAST', 'Unicast')]) + choices=[('UNICAST-CACHE', 'Unicast Cache'), + ('UNICAST-DIRECT', 'Unicast Direct')]) restore = SubmitField(label=_('Restore')) class ClientDetailsForm(FlaskForm): |