mirror of https://github.com/apache/cloudstack.git
Add check for update only name and/or description of disk offering (#6410)
* Add check for update only name and/or description of disk offering * Add check to update only name and/or description of service offerings as well
This commit is contained in:
parent
8448fe27a6
commit
e1fb2be835
|
|
@ -1358,6 +1358,20 @@ export default {
|
|||
if ('id' in this.resource && action.params.map(i => { return i.name }).includes('id')) {
|
||||
params.id = this.resource.id
|
||||
}
|
||||
|
||||
if (['updateDiskOffering'].includes(action.api) && values.tags === this.resource.tags) {
|
||||
delete values.tags
|
||||
}
|
||||
|
||||
if (['updateServiceOffering'].includes(action.api)) {
|
||||
if (values.hosttags === this.resource.hosttags) {
|
||||
delete values.hosttags
|
||||
}
|
||||
if (values.storagetags === this.resource.storagetags) {
|
||||
delete values.tags
|
||||
}
|
||||
}
|
||||
|
||||
for (const key in values) {
|
||||
const input = values[key]
|
||||
for (const param of action.params) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue