diff --git a/cloud/requests.go b/cloud/requests.go index 19131bf..6883401 100644 --- a/cloud/requests.go +++ b/cloud/requests.go @@ -440,7 +440,7 @@ type CreateSecurityGroupRequest struct { // SetTemplate sets r.Template from its structured representation. Either call // this or set the template string directly. func (r *CreateSecurityGroupRequest) SetTemplate(t SecurityGroupTemplate) { - r.Template = NewTemplate(t).String() + r.Template = mustParseTemplate(t).String() } // CloneSecurityGroupRequest is the request body for POST /cloud/security-group/{sg}/clone.