Skip to content

Commit 5ab9954

Browse files
committed
clean messages
1 parent 736f0d6 commit 5ab9954

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/main/groovy/com/rundeck/plugins/ansible/ansible/AnsibleRunnerContextBuilder.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,8 @@ public void cleanupTempFiles() {
777777
for (File temp : tempFiles) {
778778
if (!getDebug()) {
779779
System.err.println("DEBUG: Deleting temp file: " + temp.getAbsolutePath());
780-
temp.delete();
781780
}
781+
temp.delete();
782782
}
783783
tempFiles.clear();
784784

@@ -787,15 +787,7 @@ public void cleanupTempFiles() {
787787
if (getDebug()) {
788788
System.err.println("DEBUG: Execution-specific directory exists: " + executionSpecificDir.getAbsolutePath());
789789
}
790-
if (!getDebug()) {
791-
deleteDirectoryRecursively(executionSpecificDir);
792-
} else {
793-
System.err.println("DEBUG: Skipping cleanup due to debug mode");
794-
}
795-
} else {
796-
if (getDebug()) {
797-
System.err.println("DEBUG: No execution-specific directory to cleanup");
798-
}
790+
deleteDirectoryRecursively(executionSpecificDir);
799791
}
800792
}
801793

0 commit comments

Comments
 (0)