Ensuring that null or empty settings return as empty strings (#9980)

This relates to #9310
This commit is contained in:
Marcos Oviedo 2023-02-21 14:28:19 -03:00 committed by GitHub
parent bb1ae51128
commit 288c490f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,7 @@ func getCmdResponseData(outputCmd string) (string, error) {
// extracting the data from the result
workStr := element.Item[0].Data
if len(workStr) == 0 {
workStr = "data_not_set" // default value for empty data
workStr = "" // default value for empty data
}
responseData += workStr
}