File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -618,6 +618,9 @@ export default {
618618 },
619619 fetchAffinityGroups () {
620620 this .affinityGroups = []
621+ this .controlAffinityGroups = []
622+ this .workerAffinityGroups = []
623+ this .etcdAffinityGroups = []
621624 const params = {}
622625 if (! this .isObjectEmpty (this .selectedZone )) {
623626 params .zoneid = this .selectedZone .id
@@ -916,6 +919,16 @@ export default {
916919 size: values .size ,
917920 clustertype: ' CloudManaged'
918921 }
922+ if (this .isAdminOrDomainAdmin ()) {
923+ const selectedGroupIds = [... this .controlAffinityGroups , ... this .workerAffinityGroups , ... this .etcdAffinityGroups ]
924+ if (selectedGroupIds .length > 0 ) {
925+ const group = this .affinityGroups .find (affinityGroup => affinityGroup .id === selectedGroupIds[0 ])
926+ if (group) {
927+ params .domainid = group .domainid
928+ params .account = group .account
929+ }
930+ }
931+ }
919932 if (values .hypervisor !== null ) {
920933 params .hypervisor = this .selectedZoneHypervisors [values .hypervisor ].name .toLowerCase ()
921934 }
You can’t perform that action at this time.
0 commit comments