1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

fix go-namecheap vendor, already applied upstream (#100)

* fix go-namecheap vendor, already applied upstream

* updating metadata with govendor

* add one additional file from govendor update that was missed initially
This commit is contained in:
rbelnap
2017-05-10 09:50:05 -04:00
committed by Craig Peterson
parent 4e2669a4e3
commit a355b8e438
3 changed files with 28 additions and 3 deletions

24
vendor/github.com/billputer/go-namecheap/Makefile generated vendored Normal file
View File

@ -0,0 +1,24 @@
.PHONY: all fmt vet lint build test
.DEFAULT: default
all: build fmt lint test vet
build:
@echo "+ $@"
@go build -tags "$(BUILDTAGS) cgo" .
fmt:
@echo "+ $@"
@gofmt -l . | grep -v vendor | tee /dev/stderr
lint:
@echo "+ $@"
@golint ./... | grep -v vendor | tee /dev/stderr
test:
@echo "+ $@"
@go test -v
vet:
@echo "+ $@"
@go vet $(shell go list ./... | grep -v vendor)

View File

@ -64,6 +64,7 @@ func (client *Client) DomainDNSSetHosts(
requestInfo.params.Set(fmt.Sprintf("HostName%v", i+1), hosts[i].Name)
requestInfo.params.Set(fmt.Sprintf("RecordType%v", i+1), hosts[i].Type)
requestInfo.params.Set(fmt.Sprintf("Address%v", i+1), hosts[i].Address)
requestInfo.params.Set(fmt.Sprintf("MXPref%v", i+1), strconv.Itoa(hosts[i].MXPref))
requestInfo.params.Set(fmt.Sprintf("TTL%v", i+1), strconv.Itoa(hosts[i].TTL))
}