summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-01-17 14:57:45 -0500
committerScott Moser <smoser@ubuntu.com>2012-01-17 14:57:45 -0500
commitd4c5cfd23e693959a1478e4bf59a08e4dce9ca6c (patch)
treea35d416664497e472a4920dc5079074af0ad9a3c /cloudinit
parent15e3241ba725a21604e0f3570e755a91b5edba00 (diff)
downloadvyos-cloud-init-d4c5cfd23e693959a1478e4bf59a08e4dce9ca6c.tar.gz
vyos-cloud-init-d4c5cfd23e693959a1478e4bf59a08e4dce9ca6c.zip
remove some pylint line disablings
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/DataSourceOVF.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/DataSourceOVF.py b/cloudinit/DataSourceOVF.py
index 372211f3..630afc2e 100644
--- a/cloudinit/DataSourceOVF.py
+++ b/cloudinit/DataSourceOVF.py
@@ -65,6 +65,7 @@ class DataSourceOVF(DataSource.DataSource):
else:
np = {'iso': transport_iso9660,
'vmware-guestd': transport_vmware_guestd, }
+ name = None
for name, transfunc in np.iteritems():
(contents, _dev, _fname) = transfunc()
if contents:
@@ -73,7 +74,7 @@ class DataSourceOVF(DataSource.DataSource):
if contents:
(md, ud, cfg) = read_ovf_environment(contents)
self.environment = contents
- found.append(name) # pylint: disable=W0631
+ found.append(name)
# There was no OVF transports found
if len(found) == 0:
@@ -247,8 +248,8 @@ def transport_iso9660(require_iso=False):
def transport_vmware_guestd():
- # pylint: disable=C0301
- # http://blogs.vmware.com/vapp/2009/07/selfconfiguration-and-the-ovf-environment.html
+ # http://blogs.vmware.com/vapp/2009/07/ \
+ # selfconfiguration-and-the-ovf-environment.html
# try:
# cmd = ['vmware-guestd', '--cmd', 'info-get guestinfo.ovfEnv']
# (out, err) = subp(cmd)
@@ -257,7 +258,6 @@ def transport_vmware_guestd():
# # would need to error check here and see why this failed
# # to know if log/error should be raised
# return(False, None, None)
- # pylint: enable=C0301
return(False, None, None)