1
0
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:
Darren Shepherd
2018-08-10 08:53:47 -07:00
parent 58f46da754
commit 5e344d90cd
2 changed files with 9 additions and 2 deletions

View File

@@ -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)