summaryrefslogtreecommitdiff
path: root/cloudinit
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
commitb37e85ba3a63d908d3fa07c942b62cca034612e1 (patch)
tree011babea921b2663821958771499b61a57f72c19 /cloudinit
parenta8b418789a6fe773759a2068eb4cfcc673b25100 (diff)
downloadcloud-init-b37e85ba3a63d908d3fa07c942b62cca034612e1.tar.gz
fix usage of OSError.message that will not work in python3
python3's OSError does not have a .message attribute.
Diffstat (limited to 'cloudinit')
-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'