Skip to content

Commit

Permalink
reformated creating acl's
Browse files Browse the repository at this point in the history
  • Loading branch information
rejain456 committed Jan 15, 2025
1 parent 1b969d5 commit 512b258
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cns/middlewares/k8sSwiftV2_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,12 @@ func getEndpointPolicy(policyType, action, direction string, priority int) (poli

// create policy given the params
func createEndpointPolicy(policyType, action, direction string, priority int) ([]byte, error) {
type EndpointPolicy struct {
endpointPolicy := struct {
Type string `json:"Type"`
Action string `json:"Action"`
Direction string `json:"Direction"`
Priority int `json:"Priority"`
}

endpointPolicy := EndpointPolicy{
}{
Type: policyType,
Action: action,
Direction: direction,
Expand Down

0 comments on commit 512b258

Please sign in to comment.