Make jabber module compile on python 3
This commit is contained in:
parent
60b6cb8305
commit
9cac0b54c6
2 changed files with 3 additions and 2 deletions
|
@ -155,11 +155,13 @@ def main():
|
|||
conn.send(msg)
|
||||
time.sleep(1)
|
||||
conn.disconnect()
|
||||
except Exception, e:
|
||||
except Exception:
|
||||
e = get_exception()
|
||||
module.fail_json(msg="unable to send msg: %s" % e)
|
||||
|
||||
module.exit_json(changed=False, to=to, user=user, msg=msg.getBody())
|
||||
|
||||
# import module snippets
|
||||
from ansible.module_utils.basic import *
|
||||
from ansible.module_utils.pycompat24 import get_exception
|
||||
main()
|
||||
|
|
|
@ -58,4 +58,3 @@
|
|||
/network/nmcli.py
|
||||
/network/openvswitch_bridge.py
|
||||
/network/openvswitch_port.py
|
||||
/notification/jabber.py
|
||||
|
|
Loading…
Add table
Reference in a new issue