diff options
Diffstat (limited to 'nova/virt/hyperv/networkutils.py')
-rw-r--r-- | nova/virt/hyperv/networkutils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/virt/hyperv/networkutils.py b/nova/virt/hyperv/networkutils.py index 4e1f68685..626240ca3 100644 --- a/nova/virt/hyperv/networkutils.py +++ b/nova/virt/hyperv/networkutils.py @@ -58,5 +58,7 @@ class NetworkUtils(object): if ret_val != 0: raise vmutils.HyperVException(_("Failed to create vswitch port " "%(port_name)s on switch " - "%(vswitch_path)s") % locals()) + "%(vswitch_path)s") % + {'port_name': port_name, + 'vswitch_path': vswitch_path}) return new_port |