Trivial: use string for exception message

Exception messages are expected to be strings. Some Nova exception
handlers will fail when encountering wrapped exceptions.

This change fixes the only occurrence of this issue.

Change-Id: If35f7b99f9c0b9f0edd614dc96842549e6ac19c1
Closes-Bug: #1801713
This commit is contained in:
Lucian Petrut 2018-11-05 15:37:54 +02:00
parent c96671885f
commit 2757ac74b7
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: