Fix salt-ssh cp.get_url wapper bug

In fileclient.get_url function, the 2nd arg is "dest", not "saltenv".
This commit is contained in:
Kade 2017-03-03 15:58:53 +08:00 committed by GitHub
parent 251c85bd81
commit e556be369a

View File

@ -68,7 +68,7 @@ def get_url(path, dest, saltenv='base'):
'''
retrieve a URL
'''
src = __context__['fileclient'].get_url(
src = __context__['fileclient'].cache_file(
path,
saltenv,
cachedir=os.path.join('salt-ssh', __salt__.kwargs['id_']))