diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-12 17:03:26 +0100 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-12 17:03:26 +0100 |
commit | 1d00c0936bfc63117493d89268da8c81611b3c40 (patch) | |
tree | 23077c9f5d348a1b29408bba04cdac049a6ec76b /cloudinit/DataSourceOVF.py | |
parent | 982856531a3498d784e3977f307a9cbf2a673977 (diff) | |
parent | 7c38d4b469d3863443ec3322f0def25672c545db (diff) | |
download | vyos-cloud-init-1d00c0936bfc63117493d89268da8c81611b3c40.tar.gz vyos-cloud-init-1d00c0936bfc63117493d89268da8c81611b3c40.zip |
fix pylint warnings (LP: #914739) [Juerg Haefliger]
LP: #914739
Diffstat (limited to 'cloudinit/DataSourceOVF.py')
-rw-r--r-- | cloudinit/DataSourceOVF.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cloudinit/DataSourceOVF.py b/cloudinit/DataSourceOVF.py index a9089d70..1c510688 100644 --- a/cloudinit/DataSourceOVF.py +++ b/cloudinit/DataSourceOVF.py @@ -23,9 +23,7 @@ import cloudinit.util as util import sys import os.path import os -import errno from xml.dom import minidom -from xml.dom import Node import base64 import re import tempfile @@ -66,13 +64,13 @@ class DataSourceOVF(DataSource.DataSource): np = { 'iso' : transport_iso9660, 'vmware-guestd' : transport_vmware_guestd, } for name, transfunc in np.iteritems(): - (contents, dev, fname) = transfunc() + (contents, _dev, _fname) = transfunc() if contents: break if contents: (md, ud, cfg) = read_ovf_environment(contents) self.environment = contents - found.append(name) + found.append(name) # pylint: disable=W0631 # There was no OVF transports found if len(found) == 0: @@ -99,7 +97,7 @@ class DataSourceOVF(DataSource.DataSource): md = util.mergedict(md,defaults) self.seed = ",".join(found) - self.metadata = md; + self.metadata = md self.userdata_raw = ud self.cfg = cfg return True @@ -173,7 +171,7 @@ def transport_iso9660(require_iso=False): mounted = { } for mpline in mounts: - (dev,mp,fstype,opts,freq,passno) = mpline.split() + (dev,mp,fstype,_opts,_freq,_passno) = mpline.split() mounted[dev]=(dev,fstype,mp,False) mp = mp.replace("\\040"," ") if fstype != "iso9660" and require_iso: continue |