diff --git a/openstack_dashboard/dashboards/project/instances/views.py b/openstack_dashboard/dashboards/project/instances/views.py index eea4379ffd..01242ca3c6 100644 --- a/openstack_dashboard/dashboards/project/instances/views.py +++ b/openstack_dashboard/dashboards/project/instances/views.py @@ -509,15 +509,6 @@ class AttachVolumeView(forms.ModalFormView): submit_label = _("Attach Volume") success_url = reverse_lazy('horizon:project:instances:index') - @memoized.memoized_method - def get_object(self): - try: - return api.nova.server_get(self.request, - self.kwargs["instance_id"]) - except Exception: - exceptions.handle(self.request, - _("Unable to retrieve instance.")) - def get_initial(self): args = {'instance_id': self.kwargs['instance_id']} submit_url = "horizon:project:instances:attach_volume" @@ -545,15 +536,6 @@ class DetachVolumeView(forms.ModalFormView): submit_label = _("Detach Volume") success_url = reverse_lazy('horizon:project:instances:index') - @memoized.memoized_method - def get_object(self): - try: - return api.nova.server_get(self.request, - self.kwargs['instance_id']) - except Exception: - exceptions.handle(self.request, - _("Unable to retrieve instance.")) - def get_initial(self): args = {'instance_id': self.kwargs['instance_id']} submit_url = "horizon:project:instances:detach_volume"