summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-02-14 23:21:41 +0000
committerGerrit Code Review <review@openstack.org>2012-02-14 23:21:41 +0000
commit903ae99c78f1c2c90fa9bbb33d9f3b1c46a73281 (patch)
tree84f5061053f9cd9b911a1862a4e792ffd13dc2fa
parente1ae20537542a28d14c7555301a33c266aa45214 (diff)
parent6ab1a26fa9b6ecdf704a20c18e4514e0dbfe16d8 (diff)
Merge "_() works best with string literals"
-rw-r--r--nova/virt/vmwareapi/network_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/virt/vmwareapi/network_utils.py b/nova/virt/vmwareapi/network_utils.py
index fb1873224..8fbe02dc3 100644
--- a/nova/virt/vmwareapi/network_utils.py
+++ b/nova/virt/vmwareapi/network_utils.py
@@ -125,10 +125,10 @@ def get_vlanid_and_vswitch_for_portgroup(session, pg_name):
"get_dynamic_property", host_mor,
"HostSystem", "config.network.portgroup")
if not port_grps_on_host_ret:
- excep = ("ESX SOAP server returned an empty port group "
- "for the host system in its response")
+ excep = _("ESX SOAP server returned an empty port group "
+ "for the host system in its response")
LOG.exception(excep)
- raise exception.Error(_(excep))
+ raise exception.Error(excep)
port_grps_on_host = port_grps_on_host_ret.HostPortGroup
for p_gp in port_grps_on_host:
if p_gp.spec.name == pg_name: