Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
fix unknown HOST on cleanup (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Mar 17, 2023
1 parent 28a0fd2 commit d1dccd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agent/module/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ func (j *Job) Cleanup() {
}

if !vnode.Disabled {
if !j.vnodeCreated && j.vnodeGUID != "" {
_ = j.api.HOSTINFO(j.vnodeGUID, j.vnodeHostname, j.vnodeLabels)
j.vnodeCreated = true
}
_ = j.api.HOST(j.vnodeGUID)
}

Expand Down

0 comments on commit d1dccd7

Please sign in to comment.