diff --git a/fuxi/common/blockdevice.py b/fuxi/common/blockdevice.py index 236619e..855b8fb 100644 --- a/fuxi/common/blockdevice.py +++ b/fuxi/common/blockdevice.py @@ -31,5 +31,5 @@ class BlockerDeviceManager(object): .read().rstrip('\n') return (float(nr_sectors) * float(sect_size)) / units.Gi except IOError as e: - LOG.error("Failed to read device size. %s", e) - raise exceptions.FuxiException(e.message) + LOG.error("Failed to read device size. %s", str(e)) + raise exceptions.FuxiException(str(e)) diff --git a/fuxi/common/mount.py b/fuxi/common/mount.py index a0e3e5e..7ff7acf 100644 --- a/fuxi/common/mount.py +++ b/fuxi/common/mount.py @@ -149,4 +149,4 @@ def do_mount(devpath, mountpoint, fstype): mounter.mount(devpath, mountpoint, fstype) except exceptions.FuxiException as e: with excutils.save_and_reraise_exception(): - LOG.error(e.message) + LOG.error(str(e))