diff options
-rw-r--r-- | ogcp/forms/action_forms.py | 3 | ||||
-rw-r--r-- | ogcp/views.py | 2 |
2 files changed, 3 insertions, 2 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): diff --git a/ogcp/views.py b/ogcp/views.py index 191d496..e2ecaf4 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -252,7 +252,7 @@ def action_image_restore(): 'id': str(image['id'])} g.server.post('/image/restore', payload) if r.status_code == requests.codes.ok: - return make_response("200 OK", 200) + return redirect(url_for("scopes")) return make_response("400 Bad Request", 400) else: ips = parse_ips(request.args.to_dict()) |