fence-agents: master - fence_vmware_soap: Fix previous patch - fix traceback when hostname cannot be resolved

Marek GrĂ¡c marx at fedoraproject.org
Wed Feb 6 13:37:29 UTC 2013


Gitweb:        http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=7d5ffffa76a33a76cf39b8cd266bd5b38d9ddca5
Commit:        7d5ffffa76a33a76cf39b8cd266bd5b38d9ddca5
Parent:        2d159cc3e800426d34c40f9fb53ea17e1b8d1ec7
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Wed Feb 6 14:34:09 2013 +0100
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Feb 6 14:34:09 2013 +0100

fence_vmware_soap: Fix previous patch - fix traceback when hostname cannot be resolved

Previous patch was not exactly copied from another branch.
---
 fence/agents/vmware_soap/fence_vmware_soap.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fence/agents/vmware_soap/fence_vmware_soap.py b/fence/agents/vmware_soap/fence_vmware_soap.py
index b949dab..3c08eeb 100644
--- a/fence/agents/vmware_soap/fence_vmware_soap.py
+++ b/fence/agents/vmware_soap/fence_vmware_soap.py
@@ -20,10 +20,10 @@ def soap_login(options):
 		url = "http://"
 	
 	url += options["--ip"] + ":" + str(options["--ipport"]) + "/sdk"
-	conn = Client(url + "/vimService.wsdl")
-	conn.set_options(location = url)
-
 	try:
+		conn = Client(url + "/vimService.wsdl")
+		conn.set_options(location = url)
+
 		mo_ServiceInstance = Property('ServiceInstance')
 		mo_ServiceInstance._type = 'ServiceInstance'
 		ServiceContent = conn.service.RetrieveServiceContent(mo_ServiceInstance)


More information about the cluster-commits mailing list