mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Pull the first item in the list
This commit is contained in:
parent
52d6d78150
commit
160dd7c6ce
1 changed files with 2 additions and 2 deletions
|
@ -215,8 +215,8 @@ def _git_run(command, cwd=None, user=None, password=None, identity=None,
|
|||
'ssh.exe')]
|
||||
for globmask in globmasks:
|
||||
ssh_exe = glob.glob(globmask)
|
||||
if os.path.isfile(ssh_exe):
|
||||
env['GIT_SSH_EXE'] = ssh_exe
|
||||
if ssh_exe and os.path.isfile(ssh_exe[0]):
|
||||
env['GIT_SSH_EXE'] = ssh_exe[0]
|
||||
break
|
||||
else:
|
||||
raise CommandExecutionError(
|
||||
|
|
Loading…
Add table
Reference in a new issue