diff options
author | Zuul <zuul@review.opendev.org> | 2021-08-16 17:08:25 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-08-16 17:08:25 +0000 |
commit | 4598766890783c61a34677a3d88c0341a9d6ea8b (patch) | |
tree | b962918d1d3315f016b0157c27a3904fb4c45189 /glance_store/_drivers | |
parent | b42ffa40351b31fc93196b34932bb36056ff33db (diff) | |
parent | 6a241a20c9c17ede1985e5c1f4c63fcaf2a2dbc7 (diff) | |
download | glance_store-4598766890783c61a34677a3d88c0341a9d6ea8b.tar.gz |
Merge "Raise correct exception from "Quota full""
Diffstat (limited to 'glance_store/_drivers')
-rw-r--r-- | glance_store/_drivers/swift/store.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/glance_store/_drivers/swift/store.py b/glance_store/_drivers/swift/store.py index 9a531e4..baef35b 100644 --- a/glance_store/_drivers/swift/store.py +++ b/glance_store/_drivers/swift/store.py @@ -1074,6 +1074,8 @@ class BaseStore(driver.Store): if e.http_status == http_client.CONFLICT: msg = _("Swift already has an image at this location") raise exceptions.Duplicate(message=msg) + elif e.http_status == http_client.REQUEST_ENTITY_TOO_LARGE: + raise exceptions.StorageFull(message=e.msg) msg = (_(u"Failed to add object to Swift.\n" "Got error from Swift: %s.") |