summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-06-15 23:03:11 -0400
committerScott Moser <smoser@ubuntu.com>2016-06-15 23:03:11 -0400
commitb2fd5b65dc89c3fd5dbc1414968505367fc7126a (patch)
tree011babea921b2663821958771499b61a57f72c19 /cloudinit/sources
parentd4b587ebf500ddc2259fffc94a3c69c199c9a427 (diff)
downloadvyos-cloud-init-b2fd5b65dc89c3fd5dbc1414968505367fc7126a.tar.gz
vyos-cloud-init-b2fd5b65dc89c3fd5dbc1414968505367fc7126a.zip
fix usage of OSError.message that will not work in python3
python3's OSError does not have a .message attribute.
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceAltCloud.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceAltCloud.py b/cloudinit/sources/DataSourceAltCloud.py
index cd61df31..a3529609 100644
--- a/cloudinit/sources/DataSourceAltCloud.py
+++ b/cloudinit/sources/DataSourceAltCloud.py
@@ -205,8 +205,7 @@ class DataSourceAltCloud(sources.DataSource):
_err.message)
return False
except OSError as _err:
- util.logexc(LOG, 'Failed command: %s\n%s', ' '.join(cmd),
- _err.message)
+ util.logexc(LOG, 'Failed command: %s\n%s', ' '.join(cmd), _err)
return False
floppy_dev = '/dev/fd0'