diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-03-23 12:54:10 -0600 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2018-03-23 12:54:10 -0600 |
commit | 10065b1e5f0867978bb10472f609aa9238311367 (patch) | |
tree | c2ee7c8d49e0346944dfb265b09240c622b44058 /cloudinit | |
parent | 2d618e27687470a8a3649f44598819bdee8cdb03 (diff) | |
download | vyos-cloud-init-10065b1e5f0867978bb10472f609aa9238311367.tar.gz vyos-cloud-init-10065b1e5f0867978bb10472f609aa9238311367.zip |
ec2: Adjust ec2 datasource after exception_cb change.
The recent change to exception_cb missed this caller.
The result was a slow test.
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/ec2_utils.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cloudinit/ec2_utils.py b/cloudinit/ec2_utils.py index d6c61e4c..dc3f0fc3 100644 --- a/cloudinit/ec2_utils.py +++ b/cloudinit/ec2_utils.py @@ -135,10 +135,8 @@ class MetadataMaterializer(object): def _skip_retry_on_codes(status_codes, _request_args, cause): - """Returns if a request should retry based on a given set of codes that - case retrying to be stopped/skipped. - """ - return cause.code in status_codes + """Returns False if cause.code is in status_codes.""" + return cause.code not in status_codes def get_instance_userdata(api_version='latest', |