Skip to content

Commit

Permalink
Adds servers_for method to google provider
Browse files Browse the repository at this point in the history
This fixes a bug in which an already provisionned machine
would not be found, but existed, and it would not converge but
exit immediatly.
  • Loading branch information
kri5 committed Apr 29, 2015
1 parent 47eb07f commit ab4f5d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/chef/provisioning/fog_driver/providers/google.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ def server_for(machine_spec)
end
end

def servers_for(machine_specs)
result = {}
machine_specs.each do |machine_spec|
result[machine_spec] = server_for(machine_spec)
end
result
end

def bootstrap_options_for(action_handler, machine_spec, machine_options)
bootstrap_options = symbolize_keys(machine_options[:bootstrap_options] || {})
bootstrap_options[:image_name] = 'debian-7-wheezy-v20150325'
Expand Down

0 comments on commit ab4f5d1

Please sign in to comment.