Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Tolchanov <[email protected]>
  • Loading branch information
markwellis and knyar authored Nov 16, 2023
1 parent 3e036c5 commit 631e54a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tailscale/data_source_acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import (
"github.com/tailscale/tailscale-client-go/tailscale"
)

func dataSourceAcl() *schema.Resource {
func dataSourceACL() *schema.Resource {
return &schema.Resource{
Description: "The acl data source gets the acl in a tailnet",
Description: "The acl data source gets the Tailscale ACL for a tailnet",
ReadContext: dataSourceAclRead,
Schema: map[string]*schema.Schema{
"json": {
Computed: true,
Type: schema.TypeString,
Description: "the complete acl json",
Description: "The contents of Tailscale ACL as JSON",
},
},
}
}

func dataSourceAclRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
func dataSourceACLRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
client := m.(*tailscale.Client)

acl, err := client.ACL(ctx)
Expand Down

0 comments on commit 631e54a

Please sign in to comment.