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:
parent
9f5f85c9f0
commit
7ba630eda2
2 changed files with 1 additions and 2 deletions
|
@ -170,7 +170,7 @@ def main():
|
||||||
obj = XenServerFacts()
|
obj = XenServerFacts()
|
||||||
try:
|
try:
|
||||||
session = get_xenapi_session()
|
session = get_xenapi_session()
|
||||||
except XenAPI.Failure, e:
|
except XenAPI.Failure as e:
|
||||||
module.fail_json(msg='%s' % e)
|
module.fail_json(msg='%s' % e)
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
/cloud/profitbricks/profitbricks.py
|
/cloud/profitbricks/profitbricks.py
|
||||||
/cloud/profitbricks/profitbricks_volume.py
|
/cloud/profitbricks/profitbricks_volume.py
|
||||||
/cloud/rackspace/rax_clb_ssl.py
|
/cloud/rackspace/rax_clb_ssl.py
|
||||||
/cloud/xenserver_facts.py
|
|
||||||
/clustering/consul.py
|
/clustering/consul.py
|
||||||
/clustering/consul_acl.py
|
/clustering/consul_acl.py
|
||||||
/clustering/consul_kv.py
|
/clustering/consul_kv.py
|
||||||
|
|
Loading…
Reference in a new issue