Skip to content

Commit

Permalink
Merge pull request #259 from mcassaniti/tmp_vars_file_cleanup
Browse files Browse the repository at this point in the history
Remove temporary variables file after execution
  • Loading branch information
frozenice authored Feb 19, 2020
2 parents 45d9ef1 + 18b7e47 commit 6e8503f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/batix/rundeck/core/AnsibleRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@ public int run() throws Exception {
if (tempPkFile != null && !tempPkFile.delete()) {
tempPkFile.deleteOnExit();
}
if (tempVarsFile != null && !tempVarsFile.delete()) {
tempVarsFile.deleteOnExit();
}
if (tempVaultFile != null && !tempVaultFile.delete()) {
tempVaultFile.deleteOnExit();
}
Expand Down

0 comments on commit 6e8503f

Please sign in to comment.