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
This commit is contained in:
Alessandro Pilotti 2013-09-12 20:49:55 +03:00
parent 5bb6b6000d
commit 2996012f89

View File

@ -160,9 +160,10 @@ class HyperVQuantumAgent(object):
#or create it if not existing #or create it if not existing
pass pass
else: else:
raise utils.HyperVException(_("Cannot provision unknown network " raise utils.HyperVException(
"type %s for network %s"), msg=(_("Cannot provision unknown network type %(network_type)s"
network_type, net_uuid) " for network %(net_uuid)s") %
dict(network_type=network_type, net_uuid=net_uuid)))
map = { map = {
'network_type': network_type, 'network_type': network_type,