From fcb34db6194e717c2d6dc4601882cc27b61c7e6b Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 22 Feb 2023 11:34:03 +0530 Subject: [PATCH 1/2] ui: allow clearing dns during zone update Fixes #7273 Signed-off-by: Abhishek Kumar --- ui/src/views/AutogenView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 842df0fcc6a4..78e68ae34a23 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1367,13 +1367,13 @@ export default { continue } if (input === undefined || input === null || - (input === '' && !['updateStoragePool', 'updateHost', 'updatePhysicalNetwork', 'updateDiskOffering', 'updateNetworkOffering', 'updateServiceOffering'].includes(action.api))) { + (input === '' && !['updateStoragePool', 'updateHost', 'updatePhysicalNetwork', 'updateDiskOffering', 'updateNetworkOffering', 'updateServiceOffering', 'updateZone'].includes(action.api))) { if (param.type === 'boolean') { params[key] = false } break } - if (input === '' && !['tags', 'hosttags', 'storagetags'].includes(key)) { + if (input === '' && !['tags', 'hosttags', 'storagetags', 'dns2', 'ip6dns1', 'ip6dns2'].includes(key)) { break } if (action.mapping && key in action.mapping && action.mapping[key].options) { From 0cfeedc6df7fabf3178579e663ed7c474c50a770 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 27 Feb 2023 13:19:02 +0530 Subject: [PATCH 2/2] allow internal dns2 clearing Signed-off-by: Abhishek Kumar --- ui/src/views/AutogenView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 78e68ae34a23..e2dadee44fb2 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1373,7 +1373,7 @@ export default { } break } - if (input === '' && !['tags', 'hosttags', 'storagetags', 'dns2', 'ip6dns1', 'ip6dns2'].includes(key)) { + if (input === '' && !['tags', 'hosttags', 'storagetags', 'dns2', 'ip6dns1', 'ip6dns2', 'internaldns2'].includes(key)) { break } if (action.mapping && key in action.mapping && action.mapping[key].options) {