Skip to content

Commit

Permalink
Merge pull request #97 from dhellmann/bz1874599-host-delete-bugs-back…
Browse files Browse the repository at this point in the history
…ports

Bug 1874599: Always delete found host from Ironic on deletion
  • Loading branch information
openshift-merge-robot committed Oct 23, 2020
2 parents 6a02b0e + 9e15c36 commit 1431700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provisioner/ironic/ironic.go
Expand Up @@ -1075,7 +1075,7 @@ func (p *ironicProvisioner) Delete() (result provisioner.Result, err error) {
}

p.log.Info("host ready to be removed")
err = nodes.Delete(p.client, p.status.ID).ExtractErr()
err = nodes.Delete(p.client, ironicNode.UUID).ExtractErr()
switch err.(type) {
case nil:
p.log.Info("removed")
Expand Down

0 comments on commit 1431700

Please sign in to comment.