From 692078e75a3f8af92a0151ad30b6a4ecc64b4b35 Mon Sep 17 00:00:00 2001 From: Oleg Strikov Date: Thu, 5 Mar 2015 20:26:10 +0300 Subject: DataSourceMAAS: generate oauth headers with adjusted timestamp in case of clock skew This functionality has been introduced to fix LP: #978127, but was lost while migrating cloud-init to python3. --- cloudinit/sources/DataSourceMAAS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cloudinit') 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 -- cgit v1.2.3