Merge branch '4.17'

This commit is contained in:
nvazquez 2022-06-23 09:19:32 -03:00
commit eb92b50fea
No known key found for this signature in database
GPG Key ID: 656E1BCC8CB54F84
8 changed files with 40 additions and 24 deletions

View File

@ -17,4 +17,7 @@
--;
-- Schema upgrade from 4.17.0.0 to 4.17.1.0
--;
--;
UPDATE `cloud`.`configuration` SET `value` = 'false' WHERE `name` = 'network.disable.rpfilter' AND `value` != 'true';
UPDATE `cloud`.`configuration` SET `value` = 'false' WHERE `name` = 'consoleproxy.disable.rpfilter' AND `value` != 'true';

View File

@ -341,7 +341,9 @@ export default {
params.showicon = true
api('listZones', params).then(json => {
const listZones = json.listzonesresponse.zone
this.zones = this.zones.concat(listZones)
if (listZones) {
this.zones = this.zones.concat(listZones)
}
}).finally(() => {
this.zoneLoading = false
if (this.arrayHasItems(this.zones)) {

View File

@ -194,7 +194,9 @@ export default {
this.zoneLoading = true
api('listZones', params).then(json => {
const listZones = json.listzonesresponse.zone
this.zones = this.zones.concat(listZones)
if (listZones) {
this.zones = this.zones.concat(listZones)
}
}).finally(() => {
this.zoneLoading = false
if (this.arrayHasItems(this.zones)) {

View File

@ -232,7 +232,9 @@ export default {
}
api('listZones', params).then(json => {
const listZones = json.listzonesresponse.zone
this.zones = this.zones.concat(listZones)
if (listZones) {
this.zones = this.zones.concat(listZones)
}
}).finally(() => {
this.zoneLoading = false
this.form.zoneid = (this.zones[0].id ? this.zones[0].id : '')

View File

@ -209,24 +209,26 @@
<a-input v-model:value="form.vCenterDataStore" :placeholder="$t('message.datastore.description')"/>
</a-form-item>
</div>
<a-form-item name="provider" ref="provider">
<template #label>
<tooltip-label :title="$t('label.providername')" :tooltip="apiParams.provider.description"/>
</template>
<a-select
v-model:value="form.provider"
@change="updateProviderAndProtocol"
showSearch
optionFilterProp="label"
:filterOption="(input, option) => {
return option.children[0].children.toLowerCase().indexOf(input.toLowerCase()) >= 0
}"
:placeholder="apiParams.provider.description">
<a-select-option :value="provider" v-for="(provider,idx) in providers" :key="idx">
{{ provider }}
</a-select-option>
</a-select>
</a-form-item>
<div v-if="form.protocol !== 'Linstor'">
<a-form-item name="provider" ref="provider">
<template #label>
<tooltip-label :title="$t('label.providername')" :tooltip="apiParams.provider.description"/>
</template>
<a-select
v-model:value="form.provider"
@change="updateProviderAndProtocol"
showSearch
optionFilterProp="label"
:filterOption="(input, option) => {
return option.children[0].children.toLowerCase().indexOf(input.toLowerCase()) >= 0
}"
:placeholder="apiParams.provider.description">
<a-select-option :value="provider" v-for="(provider,idx) in providers" :key="idx">
{{ provider }}
</a-select-option>
</a-select>
</a-form-item>
</div>
<div v-if="form.provider !== 'DefaultPrimary' && form.provider !== 'PowerFlex' && form.provider !== 'Linstor'">
<a-form-item name="managed" ref="managed">
<template #label>

View File

@ -1345,6 +1345,7 @@ export default {
url = this.rbdURL(rbdmonitor, rbdpool, rbdid, rbdsecret)
} else if (protocol === 'Linstor') {
url = this.linstorURL(server)
params.provider = 'Linstor'
params['details[0].resourceGroup'] = this.prefillContent.primaryStorageLinstorResourceGroup
} else if (protocol === 'vmfs' || protocol === 'datastorecluster') {
let path = this.prefillContent.primaryStorageVmfsDatacenter

View File

@ -807,7 +807,9 @@ export default {
this.zoneLoading = true
api('listZones', params).then(json => {
const listZones = json.listzonesresponse.zone
this.zones = this.zones.concat(listZones)
if (listZones) {
this.zones = this.zones.concat(listZones)
}
}).finally(() => {
this.zoneLoading = false
})

View File

@ -409,7 +409,9 @@ export default {
this.zoneLoading = true
api('listZones', params).then(json => {
const listZones = json.listzonesresponse.zone
this.zones = this.zones.concat(listZones)
if (listZones) {
this.zones = this.zones.concat(listZones)
}
}).finally(() => {
this.zoneLoading = false
})