diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-01-31 16:40:43 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-01-31 16:40:43 -0500 |
commit | 85444c68c8728d4324b71218d15d4f04ecdb4fbd (patch) | |
tree | 4759569605606ca1776eb2688d3d58e28752fa66 /cloudinit/DataSourceOVF.py | |
parent | 9e520d45a60a91750f9ad77da0be7dc58e57f4d8 (diff) | |
download | vyos-cloud-init-85444c68c8728d4324b71218d15d4f04ecdb4fbd.tar.gz vyos-cloud-init-85444c68c8728d4324b71218d15d4f04ecdb4fbd.zip |
replace DataSource's self.log
After adding the 'log' element to the DataSource class, pickling would
fail with
TypeError: can't pickle file objects
Instead of having the object with a log reference, use one from
'DataSource.log' and have that set by cloudinit
Diffstat (limited to 'cloudinit/DataSourceOVF.py')
-rw-r--r-- | cloudinit/DataSourceOVF.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/DataSourceOVF.py b/cloudinit/DataSourceOVF.py index 31d0c407..a126c8bd 100644 --- a/cloudinit/DataSourceOVF.py +++ b/cloudinit/DataSourceOVF.py @@ -87,12 +87,12 @@ class DataSourceOVF(DataSource.DataSource): seedfound = proto break if not seedfound: - self.log.debug("seed from %s not supported by %s" % + log.debug("seed from %s not supported by %s" % (seedfrom, self.__class__)) return False (md_seed,ud) = util.read_seeded(seedfrom) - self.log.debug("using seeded cache data from %s" % seedfrom) + log.debug("using seeded cache data from %s" % seedfrom) md = util.mergedict(md,md_seed) found.append(seedfrom) |