anchore-engine icon indicating copy to clipboard operation
anchore-engine copied to clipboard

Error handling in swift objectstorage driver

Open nightfurys opened this issue 3 years ago • 0 comments

Error handling in swift driver's credential verification path is masking the original error

https://github.com/anchore/anchore-engine/blob/master/anchore_engine/subsys/object_store/drivers/swift.py#L75

Log snippet

File "/usr/local/lib/python3.8/site-packages/anchore_engine/subsys/object_store/drivers/swift.py", line 75, 
in _check_creds elif resp.get("error") and resp.get("error").http_status in [401, 403]: 
AttributeError: 'SSLError' object has no attribute 'http_status'

https://github.com/anchore/anchore-engine/pull/1140 was opened to address the issue

nightfurys avatar Jul 07 '21 20:07 nightfurys