mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Update junos.py
Called .keys() once instead of 10 times.
This commit is contained in:
parent
cb44161eb6
commit
69a790fd6e
@ -58,8 +58,9 @@ def init(opts):
|
||||
'ssh_config',
|
||||
'normalize'
|
||||
]
|
||||
proxy_keys = opts['proxy'].keys()
|
||||
for arg in optional_args:
|
||||
if arg in opts['proxy'].keys():
|
||||
if arg in proxy_keys:
|
||||
args[arg] = opts['proxy'][arg]
|
||||
|
||||
thisproxy['conn'] = jnpr.junos.Device(**args)
|
||||
|
Loading…
Reference in New Issue
Block a user