Skip to content

Commit

Permalink
Merge pull request #270 from puppetlabs/cat-1958-fix_broken_abs_teardown
Browse files Browse the repository at this point in the history
(CAT-1958) - Fix 404 on teardown of abs node
  • Loading branch information
david22swan authored Jul 11, 2024
2 parents 1b1bddc + 5b5b895 commit 5b26d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/abs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def tear_down(node_name, inventory)

uri = URI.parse("https://#{abs_host}/api/v2/return")
headers = { 'X-AUTH-TOKEN' => token_from_fogfile('abs'), 'Content-Type' => 'application/json' }
payload = { 'job_id' => node['job_id'],
payload = { 'job_id' => node['facts']['job_id'],
'hosts' => [{ 'hostname' => node['uri'], 'type' => node['facts']['platform'], 'engine' => 'vmpooler' }] }
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
Expand Down

0 comments on commit 5b26d04

Please sign in to comment.