mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
The call to cp.get_url needs the saltenv, if you're using environments other than base, it will fail.
This commit is contained in:
parent
a8694014a9
commit
31412920fc
1 changed files with 4 additions and 1 deletions
|
@ -284,7 +284,10 @@ def present(
|
|||
|
||||
# Get only the path to the file without env referrences to check if exists
|
||||
if source != '':
|
||||
source_path = __salt__['cp.get_url'](source, None)
|
||||
source_path = __salt__['cp.get_url'](
|
||||
source,
|
||||
None,
|
||||
saltenv=__env__)
|
||||
|
||||
if source != '' and not source_path:
|
||||
data = 'no key'
|
||||
|
|
Loading…
Add table
Reference in a new issue