Merge "Trivial: use string for exception message"

This commit is contained in:
Zuul 2018-11-19 15:32:30 +00:00 committed by Gerrit Code Review
commit 8e4dd0143f
1 changed files with 2 additions and 1 deletions

View File

@ -1096,7 +1096,8 @@ class VMOps(object):
except Exception as exc:
LOG.exception("Failed to plug vif: '%s'.",
vif, instance=instance)
raise exception.VirtualInterfacePlugException(exc)
raise exception.VirtualInterfacePlugException(
six.text_type(exc))
def unplug_vifs(self, instance, network_info):
if network_info: