Changed rm_rf's argument to actually remove intended file. (refs #31363)

This commit is contained in:
zer0def 2017-04-04 19:23:26 +02:00
parent 9ed85f3c59
commit 3c750c2b24

View file

@ -1612,7 +1612,7 @@ def latest(name,
for target_object in target_contents:
target_path = os.path.join(target, target_object)
try:
salt.utils.rm_rf(target)
salt.utils.rm_rf(target_path)
except OSError as exc:
removal_errors[target_path] = exc
if removal_errors: