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
commit 1ed3bd9168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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