mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 18:43:26 +01:00
Merge branch '4.22'
This commit is contained in:
commit
81b2c38be9
@ -153,6 +153,8 @@ public class UpdateStoragePoolCmd extends BaseCmd {
|
|||||||
if (ObjectUtils.anyNotNull(name, capacityIops, capacityBytes, url, isTagARule, tags) ||
|
if (ObjectUtils.anyNotNull(name, capacityIops, capacityBytes, url, isTagARule, tags) ||
|
||||||
MapUtils.isNotEmpty(details)) {
|
MapUtils.isNotEmpty(details)) {
|
||||||
result = _storageService.updateStoragePool(this);
|
result = _storageService.updateStoragePool(this);
|
||||||
|
} else {
|
||||||
|
result = _storageService.getStoragePool(getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enabled != null) {
|
if (enabled != null) {
|
||||||
|
|||||||
@ -251,7 +251,10 @@ class TestDirectDownloadTemplates(cloudstackTestCase):
|
|||||||
self.apiclient,
|
self.apiclient,
|
||||||
id=poolId
|
id=poolId
|
||||||
)
|
)
|
||||||
return local_pool[0].tags
|
if local_pool[0].tags:
|
||||||
|
return local_pool[0].tags
|
||||||
|
else:
|
||||||
|
return ""
|
||||||
|
|
||||||
def updateStoragePoolTags(self, poolId, tags):
|
def updateStoragePoolTags(self, poolId, tags):
|
||||||
StoragePool.update(
|
StoragePool.update(
|
||||||
|
|||||||
@ -928,6 +928,7 @@
|
|||||||
import { ref, reactive, toRaw, nextTick, h } from 'vue'
|
import { ref, reactive, toRaw, nextTick, h } from 'vue'
|
||||||
import { Button, message } from 'ant-design-vue'
|
import { Button, message } from 'ant-design-vue'
|
||||||
import { getAPI, postAPI } from '@/api'
|
import { getAPI, postAPI } from '@/api'
|
||||||
|
import { isAdmin } from '@/role'
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import { mixin, mixinDevice } from '@/utils/mixin.js'
|
import { mixin, mixinDevice } from '@/utils/mixin.js'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
@ -1232,6 +1233,7 @@ export default {
|
|||||||
return _.map(this.affinityGroups, 'id')
|
return _.map(this.affinityGroups, 'id')
|
||||||
},
|
},
|
||||||
params () {
|
params () {
|
||||||
|
const listAll = isAdmin()
|
||||||
return {
|
return {
|
||||||
serviceOfferings: {
|
serviceOfferings: {
|
||||||
list: 'listServiceOfferings',
|
list: 'listServiceOfferings',
|
||||||
@ -1279,7 +1281,7 @@ export default {
|
|||||||
domainid: this.owner.domainid,
|
domainid: this.owner.domainid,
|
||||||
projectid: this.owner.projectid,
|
projectid: this.owner.projectid,
|
||||||
keyword: undefined,
|
keyword: undefined,
|
||||||
listall: false
|
listall: listAll
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sshKeyPairs: {
|
sshKeyPairs: {
|
||||||
@ -1287,8 +1289,11 @@ export default {
|
|||||||
options: {
|
options: {
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
account: this.owner.account,
|
||||||
|
domainid: this.owner.domainid,
|
||||||
|
projectid: this.owner.projectid,
|
||||||
keyword: undefined,
|
keyword: undefined,
|
||||||
listall: false
|
listall: listAll
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
userDatas: {
|
userDatas: {
|
||||||
@ -1296,8 +1301,11 @@ export default {
|
|||||||
options: {
|
options: {
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
account: this.owner.account,
|
||||||
|
domainid: this.owner.domainid,
|
||||||
|
projectid: this.owner.projectid,
|
||||||
keyword: undefined,
|
keyword: undefined,
|
||||||
listall: false
|
listall: listAll
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
networks: {
|
networks: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user