summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-03-19 09:32:04 -0400
committerScott Moser <smoser@ubuntu.com>2013-03-19 09:32:04 -0400
commit8fbe938228909e153afb88f189b269df60501510 (patch)
tree245d50cda87c6031a70bc5d9e858629cd65693a1 /cloudinit/distros
parent6591a7d35add188536dc9db1db0b9ceeaed887d7 (diff)
downloadvyos-cloud-init-8fbe938228909e153afb88f189b269df60501510.tar.gz
vyos-cloud-init-8fbe938228909e153afb88f189b269df60501510.zip
appease pylint and pep8
* cloudinit/distros/parsers/resolv_conf.py added some pylint overrides with 'plXXXXX' syntax. example: # pl51222 pylint: disable=E0102 The pl51222 there means: http://www.logilab.org/ticket/51222 This specific issue is present in 12.04 pylint, but not 13.04. * pylint doesn't like the requests special handling we have. which makes sense as it is only checking versus one specific version. * general pep8 and pylint cleanups.
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/parsers/resolv_conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/distros/parsers/resolv_conf.py b/cloudinit/distros/parsers/resolv_conf.py
index 5733c25a..1be9d46b 100644
--- a/cloudinit/distros/parsers/resolv_conf.py
+++ b/cloudinit/distros/parsers/resolv_conf.py
@@ -137,8 +137,8 @@ class ResolvConf(object):
self._contents.append(('option', ['search', s_list, '']))
return flat_sds
- @local_domain.setter
- def local_domain(self, domain):
+ @local_domain.setter # pl51222 pylint: disable=E1101
+ def local_domain(self, domain): # pl51222 pylint: disable=E0102
self.parse()
self._remove_option('domain')
self._contents.append(('option', ['domain', str(domain), '']))