mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Ensuring that null or empty settings return as empty strings (#9980)
This relates to #9310
This commit is contained in:
parent
bb1ae51128
commit
288c490f56
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user