Skip to content

Commit 230413d

Browse files
committed
fix typo in add and remove dns records
1 parent 727997f commit 230413d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dreamhostapi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func conditionalLog(message string, logActive bool) {
8989

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

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

0 commit comments

Comments
 (0)