fix a typo for retry policy.

DELA -> DELAY

Change-Id: I2da254790c77d605b59a83ce688880367d2884ab
This commit is contained in:
yangzhenyu 2017-10-10 14:28:26 +08:00
parent 7ca8254a42
commit 798580f497
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ RETRY_OPS = (
MINIMUM_DELAY_RETRIES,
MINIMUM_DELAY,
MAXIMUM_DELAY,
MAXIMUM_DELA_RETRIES,
MAXIMUM_DELAY_RETRIES,
LINEAR_INTERVAL,
) = (
3,

View File

@ -83,7 +83,7 @@ class WebhookTask(object):
# Post-Backoff Phase
for maximum_delay_retries in range(
0, retry_policy.get('maximum_delay_retries',
consts.MAXIMUM_DELA_RETRIES)):
consts.MAXIMUM_DELAY_RETRIES)):
LOG.debug('Retry with maximum delay, count: %s',
maximum_delay_retries)
time.sleep(retry_policy.get('maximum_delay', consts.MAXIMUM_DELAY))