Skip to content

Commit

Permalink
Be consistent when creating runtime parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
niclic committed May 12, 2020
1 parent 50be3a8 commit c66af44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ func (c *Client) GetRuntimeParameter(component, vhost, name string) (p *RuntimeP
// PutRuntimeParameter creates or updates a runtime parameter.
func (c *Client) PutRuntimeParameter(component, vhost, name string, value interface{}) (res *http.Response, err error) {
p := RuntimeParameter{
name,
vhost,
component,
value,
Name: name,
Vhost: vhost,
Component: component,
Value: value,
}

body, err := json.Marshal(p)
Expand Down

0 comments on commit c66af44

Please sign in to comment.