Replaced exc.message with str(exc)
For logging the exception message: exc.message has been
deprecated. The preferred way is to call str(exc).
More details:
@@ -275,7 +275,7 @@ class LVMShareDriver(LVMMixin, driver.ShareDriver):
except exception.ProcessExecutionError:
LOG.warning("Can't remove share %r", share['id'])
except exception.InvalidShare as exc:
- LOG.warning(exc.message)
+ LOG.warning(str(exc))
def update_access(self, context, share, access_rules, add_rules,
delete_rules, share_server=None):
