diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-08-07 09:19:29 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-08-07 09:19:29 -0500 |
commit | be2d965bcd2ebd58d41b790d6cc553d98a8234c4 (patch) | |
tree | 94e39608ff62efa2bf3045a1e3081241df908813 /cloudinit/url_helper.py | |
parent | 3c135e4b90ea55e85b9a9afd039acbb9fa672208 (diff) | |
download | vyos-cloud-init-be2d965bcd2ebd58d41b790d6cc553d98a8234c4.tar.gz vyos-cloud-init-be2d965bcd2ebd58d41b790d6cc553d98a8234c4.zip |
fix syntax
Diffstat (limited to 'cloudinit/url_helper.py')
-rw-r--r-- | cloudinit/url_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/url_helper.py b/cloudinit/url_helper.py index 81569e19..dca4cc85 100644 --- a/cloudinit/url_helper.py +++ b/cloudinit/url_helper.py @@ -431,7 +431,7 @@ class OauthUrlHelper(object): skew = int(remote_time - time.time()) host = urlparse(exception.url).netloc old_skew = self.skew_data.get(host, 0) - if (abs(old_skew - skew) > self.skew_change_limit: + if abs(old_skew - skew) > self.skew_change_limit: self.update_skew_file(host, skew) LOG.warn("Setting oauth clockskew for %s to %d", host, skew) skew_data[host] = skew |