Skip to content

Commit 54537e9

Browse files
committed
Add support for listing all affinity groups for admin users
1 parent f06461c commit 54537e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/src/views/compute/CreateKubernetesCluster.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,9 @@ export default {
622622
if (!this.isObjectEmpty(this.selectedZone)) {
623623
params.zoneid = this.selectedZone.id
624624
}
625+
if (this.isAdminOrDomainAdmin()) {
626+
params.listall = true
627+
}
625628
this.affinityGroupLoading = true
626629
getAPI('listAffinityGroups', params).then(json => {
627630
const groups = json.listaffinitygroupsresponse.affinitygroup

0 commit comments

Comments
 (0)