mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
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:
committed by
Matt Clay
parent
9f5f85c9f0
commit
7ba630eda2
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user