mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
vultr: fix for unreliable API behavior (#45712)
This commit is contained in:
parent
22986648dc
commit
1ed3bd9168
3 changed files with 9 additions and 9 deletions
|
@ -169,8 +169,7 @@ class Vultr:
|
|||
timeout=self.api_config['api_timeout'],
|
||||
)
|
||||
|
||||
# Did we hit the rate limit?
|
||||
if info.get('status') and info.get('status') != 503:
|
||||
if info.get('status') == 200:
|
||||
break
|
||||
|
||||
# Vultr has a rate limiting requests per second, try to be polite
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue