Use the correct module param names to pass user/pass
This commit is contained in:
parent
167cad99fa
commit
aaaff1f120
1 changed files with 2 additions and 2 deletions
|
@ -94,8 +94,8 @@ def main():
|
||||||
AGENT = "Ansible/1.2"
|
AGENT = "Ansible/1.2"
|
||||||
|
|
||||||
# Hack to add basic auth username and password the way fetch_url expects
|
# Hack to add basic auth username and password the way fetch_url expects
|
||||||
module.params['username'] = token
|
module.params['url_username'] = token
|
||||||
module.params['password'] = 'X'
|
module.params['url_password'] = 'X'
|
||||||
|
|
||||||
target_url = '%s/room/%s/speak.xml' % (URI, room)
|
target_url = '%s/room/%s/speak.xml' % (URI, room)
|
||||||
headers = {'Content-Type': 'application/xml',
|
headers = {'Content-Type': 'application/xml',
|
||||||
|
|
Loading…
Reference in a new issue