diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-03-02 15:41:16 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-03-02 15:41:16 -0500 |
commit | f0388cfffadc0596faeda9e11775597444bff25d (patch) | |
tree | bd747eea420b385594d915e9c8944183f0c5dbf3 /cloudinit | |
parent | c9c811b2c3bad00cc1f0a3db6b7173bab3b1a7ad (diff) | |
download | vyos-cloud-init-f0388cfffadc0596faeda9e11775597444bff25d.tar.gz vyos-cloud-init-f0388cfffadc0596faeda9e11775597444bff25d.zip |
pep8
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/ec2_utils.py | 1 | ||||
-rw-r--r-- | cloudinit/stages.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/ec2_utils.py b/cloudinit/ec2_utils.py index 7cf99186..37b92a83 100644 --- a/cloudinit/ec2_utils.py +++ b/cloudinit/ec2_utils.py @@ -185,6 +185,7 @@ def get_instance_metadata(api_version='latest', caller = functools.partial(util.read_file_or_url, ssl_details=ssl_details, timeout=timeout, retries=retries) + def mcaller(url): return caller(url).contents diff --git a/cloudinit/stages.py b/cloudinit/stages.py index 94fcf4cc..45d64823 100644 --- a/cloudinit/stages.py +++ b/cloudinit/stages.py @@ -346,7 +346,8 @@ class Init(object): processed_vd = str(self.datasource.get_vendordata()) if processed_vd is None: processed_vd = '' - util.write_file(self._get_ipath('vendordata'), str(processed_vd), 0o600) + util.write_file(self._get_ipath('vendordata'), str(processed_vd), + 0o600) def _default_handlers(self, opts=None): if opts is None: |