Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Bug 1146750 - Do not remove PI tmp directory when tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhonce committed Oct 20, 2014
1 parent 65e2082 commit 3499753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/lib/openshift-origin-node/model/application_container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def tidy
# git gc - do this last to maximize room for git to write changes
gear_level_tidy_git(gear_repo_dir)
rescue Exception => e
logger.warn("An unknown exception occured during tidy for gear #{@uuid}: #{e.message}\n#{e.backtrace}")
logger.warn("An unknown exception occurred during tidy for gear #{@uuid}: #{e.message}\n#{e.backtrace}")
ensure
start_gear(user_initiated: false)
end
Expand Down Expand Up @@ -515,7 +515,7 @@ def stop_gear(options={})
def gear_level_tidy_tmp(gear_tmp_dir)
# Temp dir cleanup
tidy_action do
FileUtils.rm_rf(Dir.glob(PathUtils.join(gear_tmp_dir, "*")))
FileUtils.rm_rf(Dir.glob(PathUtils.join(gear_tmp_dir, uuid, '*')))
logger.debug("Cleaned gear temp dir at #{gear_tmp_dir}")
end
end
Expand Down

0 comments on commit 3499753

Please sign in to comment.