Skip to content

Commit

Permalink
fix: NewTemplate -> mustParseTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
masonkatz committed May 30, 2024
1 parent 19a5612 commit 8dfc09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8dfc09d

Please sign in to comment.