Skip to content

Commit

Permalink
Update dyntemplate.go
Browse files Browse the repository at this point in the history
fix escape

(cherry picked from commit 92d78bb)
  • Loading branch information
jokimina authored and rsmontero committed Mar 25, 2022
1 parent 02fcce6 commit 995f2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oca/go/src/goca/dynamic/dyntemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 995f2d1

Please sign in to comment.