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:
Gareth J. Greenaway 2016-02-04 16:55:35 -08:00 committed by Colton Myers
parent a8694014a9
commit 31412920fc

View file

@ -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'