From 85444c68c8728d4324b71218d15d4f04ecdb4fbd Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 31 Jan 2011 16:40:43 -0500 Subject: 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 --- cloudinit/DataSourceOVF.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit/DataSourceOVF.py') 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) -- cgit v1.2.3