diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-03-05 12:47:49 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-03-05 12:47:49 -0500 |
commit | 5938747c4e3dbaca8afb3ce63e8ea5a67210b399 (patch) | |
tree | 61fcb64daf6b83fc30dce4715bb4ef9664653a4b | |
parent | 978991f5793f639f24c95df3beca5e4cdf98fd9c (diff) | |
parent | 692078e75a3f8af92a0151ad30b6a4ecc64b4b35 (diff) | |
download | vyos-cloud-init-5938747c4e3dbaca8afb3ce63e8ea5a67210b399.tar.gz vyos-cloud-init-5938747c4e3dbaca8afb3ce63e8ea5a67210b399.zip |
DataSourceMAAS: adjust local timestamp in case of clock skew
This functionality has been introduced to fix LP: #978127, but was lost
while migrating cloud-init to python3.
LP: #1427939
-rw-r--r-- | cloudinit/sources/DataSourceMAAS.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceMAAS.py b/cloudinit/sources/DataSourceMAAS.py index 6cc010b7..9f9cf3ab 100644 --- a/cloudinit/sources/DataSourceMAAS.py +++ b/cloudinit/sources/DataSourceMAAS.py @@ -288,7 +288,8 @@ def oauth_headers(url, consumer_key, token_key, token_secret, consumer_secret, client_secret=consumer_secret, resource_owner_key=token_key, resource_owner_secret=token_secret, - signature_method=oauth1.SIGNATURE_PLAINTEXT) + signature_method=oauth1.SIGNATURE_PLAINTEXT, + timestamp=timestamp) uri, signed_headers, body = client.sign(url) return signed_headers |