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

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


The following commit(s) were added to refs/heads/4.18 by this push:
     new ea569ffaadc expand tags in csv (#8258)
ea569ffaadc is described below

commit ea569ffaadcc7eaf38c7998d1fa8b7da0b6e3580
Author: dahn <[email protected]>
AuthorDate: Sat Dec 9 07:03:55 2023 +0100

    expand tags in csv (#8258)
    
    Fixes: #8256
---
 ui/src/views/network/AclListRulesTab.vue | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/ui/src/views/network/AclListRulesTab.vue 
b/ui/src/views/network/AclListRulesTab.vue
index c8b6689fb59..124d91ce399 100644
--- a/ui/src/views/network/AclListRulesTab.vue
+++ b/ui/src/views/network/AclListRulesTab.vue
@@ -334,7 +334,17 @@ export default {
             result += columnDelimiter
           }
 
-          result += typeof item[key] === 'string' && 
item[key].includes(columnDelimiter) ? `"${item[key]}"` : item[key]
+          if (key === 'tags') {
+            var tags = '"'
+            if (item[key].length > 0) {
+              item[key].forEach(tag => {
+                tags += '(' + tag.key + ',' + tag.value + ')'
+              })
+            }
+            result += tags + '"'
+          } else {
+            result += typeof item[key] === 'string' && 
item[key].includes(columnDelimiter) ? `"${item[key]}"` : item[key]
+          }
           ctr++
         })
         result += lineDelimiter

Reply via email to