Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Iryna Shustava <[email protected]>
  • Loading branch information
lkysow and ishustava committed Mar 18, 2020
1 parent ab7c485 commit e2d7568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subcommand/server-acl-init/anonymous_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
// configureAnonymousPolicy sets up policies and tokens so that Consul DNS and
// cross-datacenter Consul connect calls will work.
func (c *Command) configureAnonymousPolicy(consulClient *api.Client) error {
dnsRules, err := c.anonymousTokenRules()
anonRules, err := c.anonymousTokenRules()
if err != nil {
c.Log.Error("Error templating anonymous token rules", "err", err)
return err
Expand All @@ -17,7 +17,7 @@ func (c *Command) configureAnonymousPolicy(consulClient *api.Client) error {
anonPolicy := api.ACLPolicy{
Name: "anonymous-token-policy",
Description: "Anonymous token Policy",
Rules: dnsRules,
Rules: anonRules,
}

err = c.untilSucceeds("creating anonymous token policy - PUT /v1/acl/policy",
Expand Down

0 comments on commit e2d7568

Please sign in to comment.