Replace deprecated glanceclient exceptions
These exceptions were deprecated in 0.4.0[1]. Also glanceclient.common.exceptions was deprecated in favor of glanceclient.exc[2]. [1] 354c98b087515dc4303a07d1ff0d9a9d7b4dd48b [2] 53acf1a0ca70c900267286a249e476fffe078a9f Closes-Bug: #2059821 Change-Id: If119a261f52b99fe9faf4b8f749a2abbd7a79957
This commit is contained in:
parent
be825dfda8
commit
8cca9edbd8
@ -17,7 +17,7 @@
|
||||
# under the License.
|
||||
|
||||
from cinderclient import exceptions as cinderclient
|
||||
from glanceclient.common import exceptions as glanceclient
|
||||
from glanceclient import exc as glanceclient
|
||||
from keystoneclient import exceptions as keystoneclient
|
||||
from neutronclient.common import exceptions as neutronclient
|
||||
from novaclient import exceptions as novaclient
|
||||
@ -29,7 +29,7 @@ UNAUTHORIZED = (
|
||||
keystoneclient.Unauthorized,
|
||||
cinderclient.Unauthorized,
|
||||
novaclient.Unauthorized,
|
||||
glanceclient.Unauthorized,
|
||||
glanceclient.HTTPUnauthorized,
|
||||
neutronclient.Unauthorized,
|
||||
)
|
||||
|
||||
@ -38,7 +38,7 @@ NOT_FOUND = (
|
||||
keystoneclient.NotFound,
|
||||
cinderclient.NotFound,
|
||||
novaclient.NotFound,
|
||||
glanceclient.NotFound,
|
||||
glanceclient.HTTPNotFound,
|
||||
neutronclient.NotFound,
|
||||
)
|
||||
|
||||
@ -54,7 +54,7 @@ RECOVERABLE = (
|
||||
cinderclient.Forbidden,
|
||||
novaclient.ClientException,
|
||||
novaclient.Forbidden,
|
||||
glanceclient.ClientException,
|
||||
glanceclient.HTTPException,
|
||||
glanceclient.CommunicationError,
|
||||
neutronclient.Forbidden,
|
||||
neutronclient.NeutronClientException,
|
||||
|
Loading…
Reference in New Issue
Block a user