Skip to content

Commit

Permalink
Drop unneeded code
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <dcassany@suse.com>
  • Loading branch information
davidcassany authored and fgiudici committed Jul 28, 2022
1 parent 38929d2 commit fe0c5ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/controllers/machineinventoryselector/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,10 @@ func (h *handler) inventoryReadyHandler(obj *v1beta1.MachineInventorySelector, s
}

// if the adoption succeeded the inventory is ready
if err == nil {
if err == nil {
v1beta1.InventoryReadyCondition.SetError(&status, "", nil)
return status, nil
}

v1beta1.InventoryReadyCondition.False(&status)
v1beta1.InventoryReadyCondition.Message(&status, "waiting for machine inventory")
return status, errors.New("waiting for machine inventory")
}

// adoptMachineInventory attempts to set a controller owner on the inventory
Expand Down

0 comments on commit fe0c5ab

Please sign in to comment.