Skip to content

Commit

Permalink
fix(vmbda): fix block device attached count condition processing (#517)
Browse files Browse the repository at this point in the history
Fix VirtualMachineBlockDeviceAttachement block device attached count condition processing.

Signed-off-by: Valeriy Khorunzhin <[email protected]>
  • Loading branch information
eofff authored Nov 12, 2024
1 parent d26a0fb commit d5c571c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (h *BlockDeviceLimiter) Handle(ctx context.Context, vmbda *virtv2.VirtualMa
return reconcile.Result{}, nil
}

if blockDeviceAttachedCount > common.VmBlockDeviceAttachedLimit {
if blockDeviceAttachedCount <= common.VmBlockDeviceAttachedLimit {
cb.
Status(metav1.ConditionTrue).
Reason(vmbdacondition.CapacityAvailable).
Expand Down

0 comments on commit d5c571c

Please sign in to comment.