From: Alessandro Pilotti Date: Fri, 13 Sep 2013 16:44:22 +0000 (+0300) Subject: Fixes Hyper-V agent unsopported network_type issue X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b94c88f80ac2473ec6a61c26bf0e2843a63456b2;p=openstack-build%2Fneutron-build.git 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 --- 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,