mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
fix: minor changes
This commit is contained in:
parent
eda3cce177
commit
ebe4e02cf0
2 changed files with 3 additions and 3 deletions
|
|
@ -151,7 +151,7 @@ func (client *SmdClient) makeRequest(endpoint string) ([]byte, error) {
|
|||
}
|
||||
|
||||
// fetch DHCP related information from SMD's endpoint:
|
||||
url := fmt.Sprintf("%s:%d/hsm/v2%s", client.Host, client.Port, endpoint)
|
||||
url := fmt.Sprintf("%s/hsm/v2%s", client.Host, endpoint)
|
||||
req, err := http.NewRequest(http.MethodGet, url, bytes.NewBuffer([]byte{}))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create new HTTP request: %v", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue