mirror of
https://github.com/rancher/norman.git
synced 2025-09-03 00:06:24 +00:00
Don't strip strings on output
This commit is contained in:
@@ -330,6 +330,9 @@ func ConvertSimple(fieldType string, value interface{}, op Operation) (interface
|
||||
case "password":
|
||||
return convert.ToString(value), nil
|
||||
case "string":
|
||||
if op.IsList() {
|
||||
return convert.ToStringNoTrim(value), nil
|
||||
}
|
||||
return convert.ToString(value), nil
|
||||
case "dnsLabel":
|
||||
str := convert.ToString(value)
|
||||
|
Reference in New Issue
Block a user