mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-4327:
Check for the all the transition states for Maintenance. Also corrected the isMaintenance function for StoragePoolVo Signed off by : nitin mehta<nitin.mehta@citrix.com>
This commit is contained in:
parent
4db232762c
commit
654c90f4e5
@ -340,7 +340,6 @@ public class StoragePoolVO implements StoragePool {
|
||||
|
||||
@Override
|
||||
public boolean isInMaintenance() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
return status == StoragePoolStatus.PrepareForMaintenance || status == StoragePoolStatus.Maintenance || status == StoragePoolStatus.ErrorInMaintenance || removed != null;
|
||||
}
|
||||
}
|
||||
|
||||
@ -358,9 +358,13 @@ public class PrimaryDataStoreImpl implements PrimaryDataStore {
|
||||
return this.pdsv.getPodId();
|
||||
}
|
||||
|
||||
public Date getRemoved() {
|
||||
return this.pdsv.getRemoved();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInMaintenance() {
|
||||
return this.getStatus() == StoragePoolStatus.Maintenance ? true : false;
|
||||
return this.getStatus() == StoragePoolStatus.PrepareForMaintenance || this.getStatus() == StoragePoolStatus.Maintenance || this.getStatus() == StoragePoolStatus.ErrorInMaintenance || this.getRemoved() != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user