Do not show access_key in s3 driver

Closes-Bug: #2047688
Change-Id: I9193df38d613259b61bb369fa1040fb2c51a21d7
This commit is contained in:
lujie 2024-01-19 13:12:20 +08:00
parent 7b1df2a651
commit a5ba027922
1 changed files with 2 additions and 4 deletions

View File

@ -623,10 +623,8 @@ class Store(glance_store.driver.Store):
raise glance_store.BackendException(msg)
LOG.debug("Adding image object to S3 using (s3_host=%(s3_host)s, "
"access_key=%(access_key)s, bucket=%(bucket)s, "
"key=%(key)s)",
{'s3_host': self.s3_host, 'access_key': loc.accesskey,
'bucket': bucket, 'key': key})
"bucket=%(bucket)s, key=%(key)s)",
{'s3_host': self.s3_host, 'bucket': bucket, 'key': key})
if not self._object_exists(s3_client, bucket, key):
if image_size < self.s3_store_large_object_size: