diff --git a/lib/ansible/modules/notification/jabber.py b/lib/ansible/modules/notification/jabber.py index b213ab1d71..4986d28a6d 100644 --- a/lib/ansible/modules/notification/jabber.py +++ b/lib/ansible/modules/notification/jabber.py @@ -137,7 +137,7 @@ def main(): else: host = server if module.params['encoding']: - xmpp.simplexml.ENCODING = params['encoding'] + xmpp.simplexml.ENCODING = module.params['encoding'] msg = xmpp.protocol.Message(body=module.params['msg'])