summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2015-01-27 14:36:10 -0500
committerBarry Warsaw <barry@python.org>2015-01-27 14:36:10 -0500
commitc3ced2d4bdbbbdcb2466202e1571d4ea7bfc7c72 (patch)
treeb65870a250f35767885bdc6f3b0aeea7a0e97635
parent542f2f1b83660ec3de7267c0756bc62a05d37683 (diff)
downloadvyos-cloud-init-c3ced2d4bdbbbdcb2466202e1571d4ea7bfc7c72.tar.gz
vyos-cloud-init-c3ced2d4bdbbbdcb2466202e1571d4ea7bfc7c72.zip
Remove a comment turd.
-rw-r--r--cloudinit/sources/DataSourceMAAS.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/cloudinit/sources/DataSourceMAAS.py b/cloudinit/sources/DataSourceMAAS.py
index 39296f08..082cc58f 100644
--- a/cloudinit/sources/DataSourceMAAS.py
+++ b/cloudinit/sources/DataSourceMAAS.py
@@ -284,26 +284,6 @@ def oauth_headers(url, consumer_key, token_key, token_secret, consumer_secret,
uri, signed_headers, body = client.sign(url)
return signed_headers
- ## consumer = oauth.OAuthConsumer(consumer_key, consumer_secret)
- ## token = oauth.OAuthToken(token_key, token_secret)
-
- ## if timestamp is None:
- ## ts = int(time.time())
- ## else:
- ## ts = timestamp
-
- ## params = {
- ## 'oauth_version': "1.0",
- ## 'oauth_nonce': oauth.generate_nonce(),
- ## 'oauth_timestamp': ts,
- ## 'oauth_token': token.key,
- ## 'oauth_consumer_key': consumer.key,
- ## }
- ## req = oauth.OAuthRequest(http_url=url, parameters=params)
- ## req.sign_request(oauth.OAuthSignatureMethod_PLAINTEXT(),
- ## consumer, token)
- ## return req.to_header()
-
class MAASSeedDirNone(Exception):
pass