]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fixes Hyper-V agent unsopported network_type issue
authorAlessandro Pilotti <apilotti@cloudbasesolutions.com>
Fri, 13 Sep 2013 16:44:22 +0000 (19:44 +0300)
committerAlessandro Pilotti <apilotti@cloudbasesolutions.com>
Fri, 13 Sep 2013 16:44:22 +0000 (19:44 +0300)
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

index b86aa51352417974dc2321749c50307f0957c64c..76dc2db515311c8e2a636ebdc7d695389af77525 100644 (file)
@@ -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,