Make xenserver_facts compile on python 3

Since the xenapi is not needed on python 2.4, we can use the
regular exception handling code
This commit is contained in:
Michael Scherer 2016-10-15 17:40:58 +02:00 committed by Matt Clay
parent 9f5f85c9f0
commit 7ba630eda2
2 changed files with 1 additions and 2 deletions

View file

@ -170,7 +170,7 @@ def main():
obj = XenServerFacts()
try:
session = get_xenapi_session()
except XenAPI.Failure, e:
except XenAPI.Failure as e:
module.fail_json(msg='%s' % e)
data = {

View file

@ -40,7 +40,6 @@
/cloud/profitbricks/profitbricks.py
/cloud/profitbricks/profitbricks_volume.py
/cloud/rackspace/rax_clb_ssl.py
/cloud/xenserver_facts.py
/clustering/consul.py
/clustering/consul_acl.py
/clustering/consul_kv.py