diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-03-07 09:54:04 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-03-07 09:54:04 -0500 |
commit | 3703ed74cea613e96f3d882e90af1cadae30a092 (patch) | |
tree | 6f365ea0e55a8a9706d013875501c1fc931728b9 /cloudinit/DataSourceMaaS.py | |
parent | ea7ccdb7c118661b8e2487e5b6c7c00fda4e0c85 (diff) | |
download | vyos-cloud-init-3703ed74cea613e96f3d882e90af1cadae30a092.tar.gz vyos-cloud-init-3703ed74cea613e96f3d882e90af1cadae30a092.zip |
fix pylint and pep8 warnings
Diffstat (limited to 'cloudinit/DataSourceMaaS.py')
-rw-r--r-- | cloudinit/DataSourceMaaS.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cloudinit/DataSourceMaaS.py b/cloudinit/DataSourceMaaS.py index fc4e890d..08a48443 100644 --- a/cloudinit/DataSourceMaaS.py +++ b/cloudinit/DataSourceMaaS.py @@ -26,7 +26,6 @@ import cloudinit.util as util import errno import oauth.oauth as oauth import os.path -import socket import urllib2 import time @@ -185,7 +184,7 @@ def read_maas_seed_url(seed_url, header_cb=None, timeout=None): def check_seed_contents(content, seed): - """Validate if content is Is the content a dict that is valid as a + """Validate if content is Is the content a dict that is valid as a return for a datasource. Either return a (userdata, metadata) tuple or Raise MaasSeedDirMalformed or MaasSeedDirNone @@ -201,12 +200,12 @@ def check_seed_contents(content, seed): raise MaasSeedDirMalformed("%s: missing files %s" % (seed, missing)) userdata = content['user-data'] - md = { } + md = {} for (key, val) in content.iteritems(): if key == 'user-data': continue md[key] = val - + return(userdata, md) @@ -260,4 +259,3 @@ if __name__ == "__main__": pprint.pprint(metadata) main() - |