Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcassany authored and fgiudici committed Jul 28, 2022
1 parent fe0c5ab commit 896efee
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/controllers/machineinventoryselector/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package machineinventoryselector

import (
"github.com/pkg/errors"
"github.com/rancher/elemental-operator/pkg/apis/elemental.cattle.io/v1beta1"
"github.com/rancher/wrangler/pkg/generic"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -104,10 +103,8 @@ func (h *handler) inventoryReadyHandler(obj *v1beta1.MachineInventorySelector, s
}

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

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

0 comments on commit 896efee

Please sign in to comment.