Blame SOURCES/bz1018780-fence_vmware_soap-Unknown-exception.patch

182b9e
From b9d7388fdb2cf895f16842ac7c5615f6dd405d68 Mon Sep 17 00:00:00 2001
182b9e
From: Marek 'marx' Grac <mgrac@redhat.com>
182b9e
Date: Mon, 17 Feb 2014 15:23:19 +0100
182b9e
Subject: [PATCH] fence_vmware_soap: Unknown exception fixed
182b9e
182b9e
Resolves: rhbz#1018780
182b9e
---
182b9e
 fence/agents/vmware_soap/fence_vmware_soap.py |    4 ++--
182b9e
 1 files changed, 2 insertions(+), 2 deletions(-)
182b9e
182b9e
diff --git a/fence/agents/vmware_soap/fence_vmware_soap.py b/fence/agents/vmware_soap/fence_vmware_soap.py
182b9e
index acfdcbb..776273e 100644
182b9e
--- a/fence/agents/vmware_soap/fence_vmware_soap.py
182b9e
+++ b/fence/agents/vmware_soap/fence_vmware_soap.py
182b9e
@@ -1,7 +1,7 @@
182b9e
 #!/usr/bin/python
182b9e
 
182b9e
 import sys, exceptions, time
182b9e
-import shutil, tempfile
182b9e
+import shutil, tempfile, suds
182b9e
 sys.path.append("@FENCEAGENTSLIBDIR@")
182b9e
 
182b9e
 from suds.client import Client
182b9e
@@ -164,7 +164,7 @@ def set_power_status(conn, options):
182b9e
 			conn.service.PowerOnVM_Task(mo_machine)
182b9e
 		else:
182b9e
 			conn.service.PowerOffVM_Task(mo_machine)
182b9e
-	except WebFault, ex:
182b9e
+	except suds.WebFault, ex:
182b9e
 		if ((str(ex).find("Permission to perform this operation was denied")) >= 0):
182b9e
 			fail(EC_INVALID_PRIVILEGES)
182b9e
 		else:
182b9e
-- 
182b9e
1.7.7.6
182b9e