mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
parent
fc44df7c95
commit
ea569ffaad
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user