mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix server trust in test run of svn.latest
Add missing --trust-server-cert option while running svn.latest in test=True mode
This commit is contained in:
parent
f39fdf443f
commit
072a319490
1 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,10 @@ def latest(name,
|
|||
('{0} doesn\'t exist and is set to be checked out.').format(target))
|
||||
svn_cmd = 'svn.diff'
|
||||
opts += ('-r', 'HEAD')
|
||||
|
||||
if trust:
|
||||
opts += ('--trust-server-cert',)
|
||||
|
||||
out = __salt__[svn_cmd](cwd, target, user, username, password, *opts)
|
||||
return _neutral_test(
|
||||
ret,
|
||||
|
|
Loading…
Add table
Reference in a new issue