clarified xmpp lib to use
This commit is contained in:
parent
bd9eca2d30
commit
3acb084902
1 changed files with 4 additions and 3 deletions
|
@ -59,8 +59,9 @@ options:
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
# informational: requirements for nodes
|
# informational: requirements for nodes
|
||||||
requirements: [ xmpp ]
|
requirements:
|
||||||
author: Brian Coca
|
- python xmpp (xmpppy)
|
||||||
|
author: "Brian Coca (@bcoca)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -111,7 +112,7 @@ def main():
|
||||||
)
|
)
|
||||||
|
|
||||||
if not HAS_XMPP:
|
if not HAS_XMPP:
|
||||||
module.fail_json(msg="xmpp is not installed")
|
module.fail_json(msg="The required python xmpp library (xmpppy) is not installed")
|
||||||
|
|
||||||
jid = xmpp.JID(module.params['user'])
|
jid = xmpp.JID(module.params['user'])
|
||||||
user = jid.getNode()
|
user = jid.getNode()
|
||||||
|
|
Loading…
Reference in a new issue