Skip to content

Commit

Permalink
Merge pull request #7 from pub-solar/f/clean
Browse files Browse the repository at this point in the history
Cleanup makefile, docs, print statements
  • Loading branch information
teutat3s authored Apr 27, 2023
2 parents 9db15dc + 3a3bc8a commit 988091f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
default: install

.PHONY: docs install lint testacc

docs:
go generate ./...

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Currently only supports maintaining DNS zones and records.
-> You can configure the provider via environment variables `HOSTINGDE_*`

**Environment variables for provider configuration**
Required: `HOSTINGDE_AUTH_TOKEN`, go to your [hosting.de profile](https://secure.hosting.de/profile) and create an API Key
Optional: `HOSTINGDE_ACCOUNT_ID`
- Required: `HOSTINGDE_AUTH_TOKEN`, go to your [hosting.de profile](https://secure.hosting.de/profile) and create an API Key (token)
- Optional: `HOSTINGDE_ACCOUNT_ID`

Before continuing, make sure you have created an API token with DNS permissions
and allow-listed your [external IP address](https://wieistmeineip.de/).
Expand Down
3 changes: 1 addition & 2 deletions hostingde/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ func (c *Client) doRequestIter(httpMethod string, uri string, request Request, r
return nil, err
}

fmt.Println(string(rawBody))
req, err := http.NewRequest(httpMethod, uri, bytes.NewReader(rawBody))
if err != nil {
return nil, err
Expand Down Expand Up @@ -123,7 +122,7 @@ func (c *Client) doRequestIter(httpMethod string, uri string, request Request, r
}
}
if blocked {
fmt.Printf("Request blocked, triggering new request: %d", iteration)
fmt.Printf("Request blocked, triggering new request: %d\n", iteration)
time.Sleep(1 * time.Second)
return c.doRequestIter(httpMethod, uri, request, response, iteration)
}
Expand Down

0 comments on commit 988091f

Please sign in to comment.