Skip to content

Commit

Permalink
Merge pull request #96 from dhellmann/bug-1875558
Browse files Browse the repository at this point in the history
Bug 1875558: Always delete found host from Ironic on deletion
  • Loading branch information
openshift-merge-robot committed Sep 3, 2020
2 parents 0e12cd5 + 389283d commit c40a0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provisioner/ironic/ironic.go
Expand Up @@ -1208,7 +1208,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 c40a0bf

Please sign in to comment.