mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Changed rm_rf's argument to actually remove intended file. (refs #31363)
This commit is contained in:
parent
9ed85f3c59
commit
3c750c2b24
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue