From ee9c5df0f072ef2d18ef5a0e05ad1b7c39aa362a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Tue, 3 Mar 2020 02:19:29 +0100 Subject: [PATCH] vultr: Fix retry max delay param ignored (#67437) (#67513) * vultr: Fix retry max delay param not taken * add changelog (cherry picked from commit bcd145c111095e7fce620676921fbc796765ff4e) --- changelogs/fragments/67437-vultr-fix-retry-max-delay-param.yml | 2 ++ lib/ansible/module_utils/vultr.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/67437-vultr-fix-retry-max-delay-param.yml diff --git a/changelogs/fragments/67437-vultr-fix-retry-max-delay-param.yml b/changelogs/fragments/67437-vultr-fix-retry-max-delay-param.yml new file mode 100644 index 00000000000..b3796ceb315 --- /dev/null +++ b/changelogs/fragments/67437-vultr-fix-retry-max-delay-param.yml @@ -0,0 +1,2 @@ +bugfixes: + - vultr - Fixed the issue retry max delay param was ignored. diff --git a/lib/ansible/module_utils/vultr.py b/lib/ansible/module_utils/vultr.py index b047c939bad..7d1cfd4d872 100644 --- a/lib/ansible/module_utils/vultr.py +++ b/lib/ansible/module_utils/vultr.py @@ -61,7 +61,7 @@ class Vultr: 'api_key': self.module.params.get('api_key') or config.get('key'), 'api_timeout': self.module.params.get('api_timeout') or int(config.get('timeout') or 60), 'api_retries': self.module.params.get('api_retries') or int(config.get('retries') or 5), - 'api_retry_max_delay': self.module.params.get('api_retries') or int(config.get('retry_max_delay') or 12), + 'api_retry_max_delay': self.module.params.get('api_retry_max_delay') or int(config.get('retry_max_delay') or 12), 'api_endpoint': self.module.params.get('api_endpoint') or config.get('endpoint') or VULTR_API_ENDPOINT, } except ValueError as e: