Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Juniper/salt into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
vnitinv committed May 22, 2018
2 parents 77ab7d4 + f936434 commit 0148fe0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion salt/modules/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ def rpc(cmd=None, dest=None, format='xml', **kwargs):
op[key] = value
else:
op.update(kwargs)
op['dev_timeout'] = six.text_type(op.pop('timeout', conn.timeout))

# The variable timeout is just being kept to preserve
# backward compatibility.
if 'dev_timeout' not in op:
op['dev_timeout'] = op.pop('timeout', conn.timeout)

if cmd in ['get-config', 'get_config']:
filter_reply = None
Expand Down Expand Up @@ -905,6 +909,8 @@ def install_config(path=None, **kwargs):
commit_params['confirm'] = op['confirm']
if 'comment' in op:
commit_params['comment'] = op['comment']
if 'dev_timeout' in op:
commit_params['timeout'] = op['dev_timeout']

try:
check = cu.commit_check()
Expand Down

0 comments on commit 0148fe0

Please sign in to comment.