Skip to content

Commit

Permalink
Add debug puts
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Carabas committed Oct 26, 2020
1 parent baba588 commit 9130f29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/provision_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ def provision(platform, inventory_location, vars)
inventory_hash = inventory_hash_from_inventory_file(inventory_full_path)
response_hash = YAML.safe_load(response)

puts "X"*100
puts inventory_hash.to_yaml
puts "Y"*100
puts response_hash.to_yaml
puts "X"*100
inventory_hash['groups'].each do |g|
response_hash['groups'].each do |bg|
if g['name'] == bg['name']
Expand All @@ -81,7 +86,6 @@ def provision(platform, inventory_location, vars)
end
end

inventory_hash.deep_merge!(response_hash)
File.open(inventory_full_path, 'w') { |f| f.write inventory_hash.to_yaml }
else
File.open('inventory.yaml', 'wb') do |f|
Expand Down

0 comments on commit 9130f29

Please sign in to comment.