Make dnssimple compile on python 3

This commit is contained in:
Michael Scherer 2016-10-16 09:53:19 +02:00 committed by Matt Clay
parent d815890aa6
commit adc62226d4
2 changed files with 3 additions and 2 deletions

View file

@ -294,12 +294,14 @@ def main():
else:
module.fail_json(msg="'%s' is an unknown value for the state argument" % state)
except DNSimpleException, e:
except DNSimpleException:
e = get_exception()
module.fail_json(msg="Unable to contact DNSimple: %s" % e.message)
module.fail_json(msg="Unknown what you wanted me to do")
# import module snippets
from ansible.module_utils.basic import *
from ansible.module_utils.pycompat24 import get_exception
main()

View file

@ -62,7 +62,6 @@
/monitoring/zabbix_screen.py
/network/citrix/netscaler.py
/network/cloudflare_dns.py
/network/dnsimple.py
/network/dnsmadeeasy.py
/network/f5/bigip_gtm_virtual_server.py
/network/f5/bigip_gtm_wide_ip.py