Fix bad ref to srcpath

This commit is contained in:
Thomas S Hatch 2013-08-08 15:43:42 -06:00
parent f3d81dd4ef
commit 39b98a35e4

View File

@ -1241,7 +1241,7 @@ def recurse(name,
if not _src_path:
pass
elif _src_path.strip('/') not in __salt__['cp.list_master_dirs'](env, srcpath):
elif _src_path.strip('/') not in __salt__['cp.list_master_dirs'](env, _src_path):
ret['result'] = False
ret['comment'] = (
'The source: {0} does not exist on the master'.format(source)