Skip to content

Commit

Permalink
fix securitygrouprule json struct tags
Browse files Browse the repository at this point in the history
  • Loading branch information
geofffranks committed Apr 27, 2022
1 parent 7feb15d commit 36975d7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ type Space struct {
type SecurityGroupRules []SecurityGroupRule

type SecurityGroupRule struct {
Protocol string `json: "protocol"`
Destination string `json: "destination"`
Ports string `json: "ports"`
Type int `json: "type"`
Code int `json: "code"`
Description string `json: "description"`
Log bool `json: "log"`
Protocol string `json:"protocol"`
Destination string `json:"destination"`
Ports string `json:"ports,omitempty"`
Type int `json:"type"`
Code int `json:"code"`
Description string `json:"description,omitempty"`
Log bool `json:"log"`
}

func (sgr *SecurityGroupRules) UnmarshalJSON(data []byte) error {
Expand Down

0 comments on commit 36975d7

Please sign in to comment.