mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
support url scheme (#39683)
This commit is contained in:
@@ -93,7 +93,7 @@ class LookupModule(LookupBase):
|
||||
try:
|
||||
url = os.environ['ANSIBLE_CONSUL_URL']
|
||||
u = urlparse(url)
|
||||
consul_api = consul.Consul(host=u.hostname, port=u.port)
|
||||
consul_api = consul.Consul(host=u.hostname, port=u.port, scheme=u.scheme)
|
||||
except KeyError:
|
||||
port = kwargs.get('port', '8500')
|
||||
host = kwargs.get('host', 'localhost')
|
||||
|
||||
Reference in New Issue
Block a user