Remove reference to deprecated novaclient.exception
The ``ConnectionRefused`` exception was removed from ``python-novaclient`` in the following commit: 81ec72ecf8c32b409afedc60e013f9b4c47d5bae Change-Id: I3c7540e53f6ddbf4dcc9736bae72e27b7d6fdd27 Closes-Bug: #1863071
This commit is contained in:
parent
e3def774ad
commit
a7c57aa732
|
@ -151,7 +151,6 @@ def get_nova_flavor(identity_service):
|
|||
is_public=False)
|
||||
except (keystone_exceptions.catalog.EndpointNotFound,
|
||||
keystone_exceptions.connection.ConnectFailure,
|
||||
nova_client.exceptions.ConnectionRefused,
|
||||
nova_client.exceptions.ClientException) as e:
|
||||
raise APIUnavailable('nova', 'flavors', e)
|
||||
|
||||
|
@ -188,7 +187,6 @@ def create_nova_keypair(identity_service, amp_key_name):
|
|||
public_key=pubkey_decoded)
|
||||
except (keystone_exceptions.catalog.EndpointNotFound,
|
||||
keystone_exceptions.connection.ConnectFailure,
|
||||
nova_client.exceptions.ConnectionRefused,
|
||||
nova_client.exceptions.ClientException) as e:
|
||||
raise APIUnavailable('nova', 'keypairs', e)
|
||||
|
||||
|
|
|
@ -114,7 +114,6 @@ class TestAPICrud(test_utils.PatchHelper):
|
|||
|
||||
self.keystone_exceptions.catalog.EndpointNotFound = Exception
|
||||
self.keystone_exceptions.connection.ConnectFailure = Exception
|
||||
self.nova_client.exceptions.ConnectionRefused = Exception
|
||||
self.nova_client.exceptions.ClientException = Exception
|
||||
nova.flavors.list.side_effect = Exception
|
||||
identity_service = mock.MagicMock()
|
||||
|
|
Loading…
Reference in New Issue