summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-06-15 23:32:22 -0400
committerScott Moser <smoser@ubuntu.com>2016-06-15 23:32:22 -0400
commit922562bccbc6b6c7f3309ecd36f1835b2ad817da (patch)
treedbfb23d71e789ae88f768b33e7295ea2a6ed015c
parenta066f95c67bb5fa15350cdff319f60d589274c3a (diff)
downloadvyos-cloud-init-922562bccbc6b6c7f3309ecd36f1835b2ad817da.tar.gz
vyos-cloud-init-922562bccbc6b6c7f3309ecd36f1835b2ad817da.zip
python3 OSError does not have a .message
-rw-r--r--cloudinit/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index 8873264d..e5dd61a0 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -2210,7 +2210,7 @@ def _call_dmidecode(key, dmidecode_path):
return ""
return result
except (IOError, OSError) as _err:
- LOG.debug('failed dmidecode cmd: %s\n%s', cmd, _err.message)
+ LOG.debug('failed dmidecode cmd: %s\n%s', cmd, _err)
return None