File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
server/src/main/java/com/cloud/storage Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1514,6 +1514,10 @@ public boolean configureStorageAccess(ConfigureStorageAccessCmd cmd) {
15141514
15151515 if (storagePoolId != null ) {
15161516 StoragePoolVO storagePool = _storagePoolDao .findById (storagePoolId );
1517+ if (ScopeType .HOST .equals (storagePool .getScope ())) {
1518+ throw new CloudRuntimeException ("Storage Access Groups are not suitable for local storage" );
1519+ }
1520+
15171521 if (logger .isDebugEnabled ()) {
15181522 logger .debug ("Updating Storage Pool Access Group Maps to :" + storageAccessGroups );
15191523 }
Original file line number Diff line number Diff line change 8484 v-focus =" true" />
8585 </a-form-item >
8686
87- <a-form-item name =" storageaccessgroups" ref =" storageaccessgroups" >
87+ <a-form-item name =" storageaccessgroups" ref =" storageaccessgroups" v-if = " resource.scope !== 'HOST' " >
8888 <template #label >
8989 <tooltip-label :title =" $t('label.storageaccessgroups')" :tooltip =" apiParamsConfigureStorageAccess.storageaccessgroups.description" />
9090 </template >
You can’t perform that action at this time.
0 commit comments