Skip to content

Commit

Permalink
Add vars to single uri target
Browse files Browse the repository at this point in the history
  • Loading branch information
Helen Campbell committed Jan 6, 2021
1 parent 4ac0dc6 commit 6cc8ca8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tasks/provision_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ def provision(platform, inventory_location, vars)
unless vars.nil?
var_hash = YAML.safe_load(vars)
response_hash['groups'].each do |bg|
bg['targets'].each do |trgt|
trgt['uri'].each do |ur|
ur['vars'] = var_hash
end
bg['targets'].each do |trgts|
trgts['vars'] = var_hash
end
end
end
Expand Down

0 comments on commit 6cc8ca8

Please sign in to comment.