File tree Expand file tree Collapse file tree
src/main/groovy/com/rundeck/plugins/ansible/ansible Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments