abh1sar commented on code in PR #8875:
URL: https://github.com/apache/cloudstack/pull/8875#discussion_r1576002264
##########
ui/src/config/section/infra/primaryStorages.js:
##########
@@ -133,6 +133,24 @@ export default {
dataView: true,
show: (record) => { return ['Maintenance', 'PrepareForMaintenance',
'ErrorInMaintenance'].includes(record.state) }
},
+ {
+ api: 'changeStoragePoolScope',
+ icon: 'arrow-right-outlined',
+ label: 'label.action.change.primary.storage.scope',
+ dataView: true,
+ popup: true,
+ show: (record) => {
+ return (record.state === 'Disabled' &&
+ (record.hypervisor === 'KVM' ||
+ record.hypervisor === 'VMware' ||
+ record.hypervisor === 'HyperV' ||
+ record.hypervisor === 'LXC' ||
+ record.hypervisor === 'Any' ||
+ record.hypervisor === 'Simulator')
Review Comment:
I have updated the PR description.
This feature is tested and supported for a limited no. of storage-hypervisor
configurations.
But we are not gating this functionality for other combinations.
Hypervisors that are given here is same as the hypervisors which support
zone scope primary storage.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]