mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Check for IPv6 address master_uri address
Signed-off-by: Florian Zavatzki <fz@binsec.de>
This commit is contained in:
parent
51ad28a4d8
commit
3628432d79
@ -2016,8 +2016,11 @@ def client_config(path, env_var='SALT_CLIENT_CONFIG', defaults=None):
|
||||
|
||||
# Make sure the master_uri is set
|
||||
if 'master_uri' not in opts:
|
||||
opts['master_uri'] = 'tcp://{ip}:{port}'.format(ip=opts['interface'],
|
||||
port=opts['ret_port'])
|
||||
opts['master_uri'] = 'tcp://{ip}:{port}'.format(
|
||||
ip=salt.utils.ip_bracket(opts['interface']),
|
||||
port=opts['ret_port']
|
||||
)
|
||||
|
||||
# Return the client options
|
||||
_validate_opts(opts)
|
||||
return opts
|
||||
|
Loading…
Reference in New Issue
Block a user