mirror of https://github.com/apache/cloudstack.git
ListImageStores still show those deleted image stores.
This commit is contained in:
parent
039098469a
commit
8a956203d1
|
|
@ -16,6 +16,8 @@
|
|||
// under the License.
|
||||
package com.cloud.api.query.vo;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.EnumType;
|
||||
|
|
@ -26,6 +28,8 @@ import javax.persistence.Table;
|
|||
import com.cloud.storage.DataStoreRole;
|
||||
import com.cloud.storage.ImageStore;
|
||||
import com.cloud.storage.ScopeType;
|
||||
import com.cloud.utils.db.GenericDao;
|
||||
|
||||
import org.apache.cloudstack.api.Identity;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
|
|
@ -79,6 +83,8 @@ public class ImageStoreJoinVO extends BaseViewVO implements InternalIdentity, Id
|
|||
@Column(name="detail_value")
|
||||
private String detailValue;
|
||||
|
||||
@Column(name=GenericDao.REMOVED_COLUMN)
|
||||
private Date removed;
|
||||
|
||||
@Override
|
||||
public long getId() {
|
||||
|
|
@ -189,4 +195,13 @@ public class ImageStoreJoinVO extends BaseViewVO implements InternalIdentity, Id
|
|||
this.role = role;
|
||||
}
|
||||
|
||||
public Date getRemoved() {
|
||||
return removed;
|
||||
}
|
||||
|
||||
public void setRemoved(Date removed) {
|
||||
this.removed = removed;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ CREATE VIEW `cloud`.`image_store_view` AS
|
|||
image_store.url,
|
||||
image_store.scope,
|
||||
image_store.role,
|
||||
image_store.removed,
|
||||
data_center.id data_center_id,
|
||||
data_center.uuid data_center_uuid,
|
||||
data_center.name data_center_name,
|
||||
|
|
|
|||
Loading…
Reference in New Issue