decom: Fix failed status after a failed decommission (#19300)

When returning the status of a decommissioned pool, a pool with zero
time StartedTime will be considered an active pool, which is unexpected. 
This commit will always ensure that a pool's canceled/failed/completed
status is returned.
This commit is contained in:
Anis Eleuch 2024-03-20 04:09:59 +01:00 committed by GitHub
parent 999bbd3a14
commit 9370b11684
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,9 +72,6 @@ func (pd *PoolDecommissionInfo) Clone() *PoolDecommissionInfo {
if pd == nil {
return nil
}
if pd.StartTime.IsZero() {
return nil
}
return &PoolDecommissionInfo{
StartTime: pd.StartTime,
StartSize: pd.StartSize,