This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.17 by this push:
     new d8717299707 ui: allow clearing dns during zone update (#7276)
d8717299707 is described below

commit d87172997073e11b52a7df3e3242a794fdfdf09a
Author: Abhishek Kumar <[email protected]>
AuthorDate: Tue Apr 11 17:02:15 2023 +0530

    ui: allow clearing dns during zone update (#7276)
    
    * ui: allow clearing dns during zone update
    
    Fixes #7273
    
    Signed-off-by: Abhishek Kumar <[email protected]>
    
    * allow internal dns2 clearing
    
    Signed-off-by: Abhishek Kumar <[email protected]>
    
    ---------
    
    Signed-off-by: Abhishek Kumar <[email protected]>
---
 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 842df0fcc6a..e2dadee44fb 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', 'internaldns2'].includes(key)) {
               break
             }
             if (action.mapping && key in action.mapping && 
action.mapping[key].options) {

Reply via email to