mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fixing saltenv if not set in url
This commit is contained in:
parent
a9683cbbd8
commit
3315b67075
1 changed files with 2 additions and 0 deletions
|
@ -2396,6 +2396,8 @@ def recurse(name,
|
|||
# Check source path relative to fileserver root, make sure it is a
|
||||
# directory
|
||||
srcpath, senv = salt.utils.url.parse(source)
|
||||
if senv is None:
|
||||
senv = __env__
|
||||
master_dirs = __salt__['cp.list_master_dirs'](saltenv=senv)
|
||||
if srcpath not in master_dirs \
|
||||
and not any((x for x in master_dirs
|
||||
|
|
Loading…
Add table
Reference in a new issue