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