Skip to content

Commit

Permalink
Move new kwargs to the end of argument list
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrik committed Feb 16, 2017
1 parent 0df6b92 commit 2761a1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions salt/minion.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
# 6. Handle publications


def resolve_dns(opts, connect=True, fallback=True):
def resolve_dns(opts, fallback=True, connect=True):
'''
Resolves the master_ip and master_uri options
'''
Expand All @@ -149,7 +149,7 @@ def resolve_dns(opts, connect=True, fallback=True):
if opts['master'] == '':
raise SaltSystemExit
ret['master_ip'] = \
salt.utils.dns_check(opts['master'], opts['master_port'], connect, True, opts['ipv6'])
salt.utils.dns_check(opts['master'], opts['master_port'], True, opts['ipv6'], connect)
except SaltClientError:
if opts['retry_dns']:
while True:
Expand All @@ -163,7 +163,7 @@ def resolve_dns(opts, connect=True, fallback=True):
time.sleep(opts['retry_dns'])
try:
ret['master_ip'] = salt.utils.dns_check(
opts['master'], opts['master_port'], connect, True, opts['ipv6']
opts['master'], opts['master_port'], True, opts['ipv6'], connect
)
break
except SaltClientError:
Expand Down
2 changes: 1 addition & 1 deletion salt/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def ip_bracket(addr):
return addr


def dns_check(addr, port, connect=True, safe=False, ipv6=None):
def dns_check(addr, port, safe=False, ipv6=None, connect=True):
'''
Return the ip resolved by dns, but do not exit on failure, only raise an
exception. Obeys system preference for IPv4/6 address resolution.
Expand Down

0 comments on commit 2761a1b

Please sign in to comment.