From b94c88f80ac2473ec6a61c26bf0e2843a63456b2 Mon Sep 17 00:00:00 2001 From: Alessandro Pilotti Date: Fri, 13 Sep 2013 19:44:22 +0300 Subject: [PATCH] Fixes Hyper-V agent unsopported network_type issue Fixes an issue when an exception is raised in case of not supported network types. Fixes bug: #1224583 Change-Id: I847aa825fbf5b7086c9960c051014cc1d7515f62 --- neutron/plugins/hyperv/agent/hyperv_neutron_agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py b/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py index b86aa5135..76dc2db51 100644 --- a/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py +++ b/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py @@ -169,9 +169,9 @@ class HyperVNeutronAgent(object): pass else: raise utils.HyperVException( - _("Cannot provision unknown network type %(network_type)s " - "for network %(net_uuid)s"), - dict(network_type=network_type, net_uuid=net_uuid)) + msg=(_("Cannot provision unknown network type %(network_type)s" + " for network %(net_uuid)s") % + dict(network_type=network_type, net_uuid=net_uuid))) map = { 'network_type': network_type, -- 2.45.2