Fix invalid argument formatting in log messages

This is to fix the invalid argument formatting which will display as
"Received retryable error {err}, waiting {wait} seconds to retry".

Change-Id: Ie99558930f5ce6602dd646f99ad347c4e98e0987
This commit is contained in:
zhufl 2020-12-07 14:43:07 +08:00
parent 599ef07775
commit ffd0f12073
1 changed files with 2 additions and 2 deletions

View File

@ -535,8 +535,8 @@ def _call_client_and_retry(client, url, retry_on=None,
except exc.OpenStackCloudHTTPError as e:
if (retry_on is not None
and e.response.status_code in retry_on):
log.debug('Received retryable error {err}, waiting '
'{wait} seconds to retry', {
log.debug('Received retryable error %(err)s, waiting '
'%(wait)s seconds to retry', {
'err': e.response.status_code,
'wait': retry_wait
})