diff --git a/src/oca/go/src/goca/dynamic/dyntemplate.go b/src/oca/go/src/goca/dynamic/dyntemplate.go index 5edec5fc521..4a321f01792 100644 --- a/src/oca/go/src/goca/dynamic/dyntemplate.go +++ b/src/oca/go/src/goca/dynamic/dyntemplate.go @@ -74,7 +74,7 @@ func (t *Template) String() string { // String prints a Pair in OpenNebula syntax func (p *Pair) String() string { - return fmt.Sprintf("%s=\"%s\"", p.XMLName.Local, p.Value) + return fmt.Sprintf("%s=%s", p.XMLName.Local, strconv.Quote(p.Value)) } func (v *Vector) String() string {