mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
image filter by own
This commit is contained in:
@@ -204,7 +204,11 @@ func (self *SRegion) GetImages(status ImageStatusType, owner ImageOwnerType, ima
|
||||
|
||||
if len(owner) > 0 {
|
||||
own := string(owner)
|
||||
params.SetOwners([]*string{&own})
|
||||
if own == "self" {
|
||||
filters = AppendSingleValueFilter(filters, "owner-id", own)
|
||||
} else {
|
||||
params.SetOwners([]*string{&own})
|
||||
}
|
||||
}
|
||||
|
||||
if len(imageId) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user