From b82a1c32cf9dfc0fbc73efb0d00e4f7c2930f04f Mon Sep 17 00:00:00 2001 From: Sam Morrison Date: Wed, 18 Dec 2019 11:17:45 +1100 Subject: [PATCH] Remove unshelve handler from novaclient wrapper We haven't been using unshelve since the old instance reservation plugin was removed, and this method has been available in novaclient for years anyway. Change-Id: I5294b888b29dc408b063a98e708d240341c3e770 --- blazar/utils/openstack/nova.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/blazar/utils/openstack/nova.py b/blazar/utils/openstack/nova.py index 9d9d6d99..7adeaf0f 100644 --- a/blazar/utils/openstack/nova.py +++ b/blazar/utils/openstack/nova.py @@ -162,19 +162,7 @@ class BlazarNovaClient(object): return getattr(self.nova, name) -# TODO(dbelova): remove these lines after novaclient 2.16.0 will be released -class BlazarServer(servers.Server): - def unshelve(self): - """Unshelve -- Unshelve the server.""" - self.manager.unshelve(self) - - class ServerManager(servers.ServerManager): - resource_class = BlazarServer - - def unshelve(self, server): - """Unshelve the server.""" - self._action('unshelve', server, None) def create_image(self, server, image_name=None, metadata=None): """Snapshot a server."""