Navigation Menu

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

Commit

Permalink
Fix bug 981584: skip restore for secondary gear group in scalable app…
Browse files Browse the repository at this point in the history
… if there is no appropriate snapshot
  • Loading branch information
pmorie committed Jul 30, 2013
1 parent 14bf13e commit b15682e
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -211,6 +211,11 @@ def handle_scalable_restore(gear_groups, gear_env)
secondary_groups = get_secondary_gear_groups(gear_groups)

secondary_groups.each do |type, group|
if !File.exists?(PathUtils.join(container_dir, %W(app-root data #{type}.tar.gz)))
$stderr.puts "Unable to restore #{type} because it appears there is no snapshot for that type"
next
end

$stderr.puts "Restoring snapshot for #{type} gear"

ssh_coords = group['gears'][0]['ssh_url'].sub(/^ssh:\/\//, '')
Expand Down

0 comments on commit b15682e

Please sign in to comment.