Skip to content

Commit

Permalink
Merge pull request #5 from djotaku/fix_command_url
Browse files Browse the repository at this point in the history
fix typo in add and remove dns records
  • Loading branch information
djotaku authored Mar 6, 2023
2 parents 0af57d0 + 230413d commit ff6a896
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dreamhostapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func conditionalLog(message string, logActive bool) {

// addDNSRecord adds an IP address to a domain in dreamhost
func AddDNSRecord(domain string, newIPAddress string, apiKey string) (string, error) {
command := map[string]string{"cmd": "dns-add_record", "record": domain, "type": "A", "value": "newIPAddress"}
command := map[string]string{"cmd": "dns-add_record", "record": domain, "type": "A", "value": newIPAddress}
response, err := submitDreamhostCommand(command, apiKey)
if err != nil {
return "", err
Expand All @@ -107,7 +107,7 @@ func AddDNSRecord(domain string, newIPAddress string, apiKey string) (string, er

// deleteDNSRecord deletes an IP address to a domain in dreamhost
func DeleteDNSRecord(domain string, newIPAddress string, apiKey string) (string, error) {
command := map[string]string{"cmd": "dns-remove_record", "record": domain, "type": "A", "value": "newIPAddress"}
command := map[string]string{"cmd": "dns-remove_record", "record": domain, "type": "A", "value": newIPAddress}
response, err := submitDreamhostCommand(command, apiKey)
if err != nil {
return "", err
Expand Down

0 comments on commit ff6a896

Please sign in to comment.