vultr: fix for unreliable API behavior (#45712)

This commit is contained in:
René Moser
2018-09-19 00:01:53 +02:00
committed by GitHub
parent 22986648dc
commit 1ed3bd9168
3 changed files with 9 additions and 9 deletions

View File

@@ -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