Merge "Use POST/Redirect/GET for an instance resize form"

This commit is contained in:
Zuul 2019-07-08 10:32:14 +00:00 committed by Gerrit Code Review
commit 0890d562e4

View File

@ -17,6 +17,7 @@ import logging
from django.conf import settings
from django.http import HttpResponse
from django import shortcuts
from django import template
from django.template.defaultfilters import title
from django import urls
@ -621,6 +622,7 @@ class ConfirmResize(policy.PolicyTargetMixin, tables.Action):
def single(self, table, request, instance):
api.nova.server_confirm_resize(request, instance)
return shortcuts.redirect(request.get_full_path())
class RevertResize(policy.PolicyTargetMixin, tables.Action):