Skip to content

Commit 5b26d04

Browse files
authored
Merge pull request #270 from puppetlabs/cat-1958-fix_broken_abs_teardown
(CAT-1958) - Fix 404 on teardown of abs node
2 parents 1b1bddc + 5b5b895 commit 5b26d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/abs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def tear_down(node_name, inventory)
125125

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

0 commit comments

Comments
 (0)