diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-03-07 17:13:05 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-03-07 17:13:05 -0500 |
commit | 5da3984c2ca9e94b2483ab89ecdb5c93b5afb9f8 (patch) | |
tree | 10a659fd2664e42d2da1ce68d97eff5d6c112561 /cloudinit/handlers/cloud_config.py | |
parent | aae7fe638f61aaf02c6579d5b691a8641455c875 (diff) | |
download | vyos-cloud-init-5da3984c2ca9e94b2483ab89ecdb5c93b5afb9f8.tar.gz vyos-cloud-init-5da3984c2ca9e94b2483ab89ecdb5c93b5afb9f8.zip |
more pep8/pylint. all clean now
Diffstat (limited to 'cloudinit/handlers/cloud_config.py')
-rw-r--r-- | cloudinit/handlers/cloud_config.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cloudinit/handlers/cloud_config.py b/cloudinit/handlers/cloud_config.py index 5f519f78..d30d6338 100644 --- a/cloudinit/handlers/cloud_config.py +++ b/cloudinit/handlers/cloud_config.py @@ -46,7 +46,7 @@ class CloudConfigPartHandler(handlers.Handler): handlers.type_from_starts_with("#cloud-config"), ] - def _write_cloud_config(self, buf): + def _write_cloud_config(self): if not self.cloud_fn: return # Capture which files we merged from... @@ -107,12 +107,13 @@ class CloudConfigPartHandler(handlers.Handler): self.cloud_buf = None self.mergers = [DEF_MERGERS] - def handle_part(self, _data, ctype, filename, payload, _freq, headers): + def handle_part(self, _data, ctype, filename, # pylint: disable=W0221 + payload, _frequency, headers): # pylint: disable=W0613 if ctype == handlers.CONTENT_START: self._reset() return if ctype == handlers.CONTENT_END: - self._write_cloud_config(self.cloud_buf) + self._write_cloud_config() self._reset() return try: |