fix: minor changes

This commit is contained in:
David Allen 2024-12-11 10:53:10 -07:00
parent eda3cce177
commit ebe4e02cf0
Signed by: towk
GPG key ID: 793B2924A49B3A3F
2 changed files with 3 additions and 3 deletions

View file

@ -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)