summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-03-04 17:09:32 -0500
committerScott Moser <smoser@ubuntu.com>2015-03-04 17:09:32 -0500
commit56a594cb47342b89629e0876bd63b4e724d5e1a2 (patch)
tree787e72e1bba979810aa998eeab6eade13fbd06a4 /cloudinit/sources
parent068ee3d324350fd998e2a27e5be2991ea9bab52f (diff)
parent5eb2aab5d010e7b8d5e4146959e50f2a9f67d504 (diff)
downloadvyos-cloud-init-56a594cb47342b89629e0876bd63b4e724d5e1a2.tar.gz
vyos-cloud-init-56a594cb47342b89629e0876bd63b4e724d5e1a2.zip
Add util.message_from_string to wrap email.message_from_string.
This is to work-around the fact that email.message_from_string uses cStringIO in Python 2.6, which can't handle Unicode.
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceCloudSigma.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceCloudSigma.py b/cloudinit/sources/DataSourceCloudSigma.py
index 76597116..f8f94759 100644
--- a/cloudinit/sources/DataSourceCloudSigma.py
+++ b/cloudinit/sources/DataSourceCloudSigma.py
@@ -59,7 +59,7 @@ class DataSourceCloudSigma(sources.DataSource):
LOG.warn("failed to get hypervisor product name via dmi data")
return False
else:
- LOG.debug("detected hypervisor as {}".format(sys_product_name))
+ LOG.debug("detected hypervisor as %s", sys_product_name)
return 'cloudsigma' in sys_product_name.lower()
LOG.warn("failed to query dmi data for system product name")