Skip to content

Commit

Permalink
Fix Missing Arg
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskuchin committed Nov 20, 2023
1 parent 152a98a commit 22d85e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/bowtie/client/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"github.com/google/uuid"
)

func (c *Client) CreateDNS(name string, serverAddrs []Server, includeOnlySites []string, isCounted, isLog, isDropA, isDropAll, isSearchDomain bool, exlude []DNSExclude) (string, error) {
func (c *Client) CreateDNS(name string, serverAddrs []Server, includeOnlySites []string, isDNS64, isCounted, isLog, isDropA, isDropAll, isSearchDomain bool, exlude []DNSExclude) (string, error) {
id := uuid.NewString()
return id, c.UpsertDNS(id, name, serverAddrs, includeOnlySites, isCounted, isLog, isDropA, isDropAll, isSearchDomain, exlude)
return id, c.UpsertDNS(id, name, serverAddrs, includeOnlySites, isDNS64, isCounted, isLog, isDropA, isDropAll, isSearchDomain, exlude)
}

func (c *Client) UpsertDNS(id, name string, serverAddrs []Server, includeOnlySites []string, isCounted, isLog, isDropA, isDropAll, isSearchDomain bool, exlude []DNSExclude) error {
func (c *Client) UpsertDNS(id, name string, serverAddrs []Server, includeOnlySites []string, isDNS64, isCounted, isLog, isDropA, isDropAll, isSearchDomain bool, exlude []DNSExclude) error {
var servers map[string]Server = map[string]Server{}
for _, addr := range serverAddrs {
servers[addr.ID] = addr
Expand Down
4 changes: 2 additions & 2 deletions internal/bowtie/resources/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (d *dnsResource) Create(ctx context.Context, req resource.CreateRequest, re
})
}

id, err := d.client.CreateDNS(plan.Name.ValueString(), servers, includeSites, plan.IsCounted.ValueBool(), plan.IsLog.ValueBool(), plan.IsDropA.ValueBool(), plan.IsDropAll.ValueBool(), plan.IsSearchDomain.ValueBool(), excludes)
id, err := d.client.CreateDNS(plan.Name.ValueString(), servers, includeSites, plan.IsDNS64.ValueBool(), plan.IsCounted.ValueBool(), plan.IsLog.ValueBool(), plan.IsDropA.ValueBool(), plan.IsDropAll.ValueBool(), plan.IsSearchDomain.ValueBool(), excludes)
if err != nil {
resp.Diagnostics.AddError(
"Failed talking to bowtie server",
Expand Down Expand Up @@ -340,7 +340,7 @@ func (d *dnsResource) Update(ctx context.Context, req resource.UpdateRequest, re
})
}

err := d.client.UpsertDNS(plan.ID.ValueString(), plan.Name.ValueString(), servers, includes, plan.IsCounted.ValueBool(), plan.IsLog.ValueBool(), plan.IsDropA.ValueBool(), plan.IsDropAll.ValueBool(), plan.IsSearchDomain.ValueBool(), excludes)
err := d.client.UpsertDNS(plan.ID.ValueString(), plan.Name.ValueString(), servers, includes, plan.IsDNS64.ValueBool(), plan.IsCounted.ValueBool(), plan.IsLog.ValueBool(), plan.IsDropA.ValueBool(), plan.IsDropAll.ValueBool(), plan.IsSearchDomain.ValueBool(), excludes)
if err != nil {
resp.Diagnostics.AddError(
"Failed updating the dns settings",
Expand Down

0 comments on commit 22d85e5

Please sign in to comment.