Merge "Silence InsecureRequestWarning and password warning"

This commit is contained in:
Zuul 2019-07-17 17:15:36 +00:00 committed by Gerrit Code Review
commit cb86492fa4

View File

@ -20,6 +20,12 @@ import time
import requests
import urllib.parse
# urllib3 wants to warn us that we're making insecure requests - when we tell
# it we want to make insecure requests. We know, but in this case the requests
# are not insecure.
import urllib3
urllib3.disable_warnings()
from ansible.module_utils.basic import AnsibleModule
SB_REPO = 'https://storyboard.openstack.org/#!/project/{org}/{repo}'
@ -262,7 +268,7 @@ def ansible_main():
module = AnsibleModule(
argument_spec=dict(
url=dict(required=True),
password=dict(required=True),
password=dict(required=True, no_log=True),
projects=dict(required=True, type='list'),
always_update=dict(type='bool', default=True),
)