post-processor/vagrant-cloud: fix incorrect printf verb types
Fixes the following vet reports: post-processor/vagrant-cloud/client.go:81: arg resp for printf verb %s of wrong type: *net/http.Response post-processor/vagrant-cloud/client.go:99: arg resp for printf verb %s of wrong type: *net/http.Response post-processor/vagrant-cloud/client.go:131: arg resp for printf verb %s of wrong type: *net/http.Response post-processor/vagrant-cloud/client.go:156: arg resp for printf verb %s of wrong type: *net/http.Response post-processor/vagrant-cloud/client.go:175: arg resp for printf verb %s of wrong type: *net/http.Response
This commit is contained in:
parent
9c31822a2b
commit
8144c92dd0
|
@ -78,7 +78,7 @@ func (v VagrantCloudClient) Get(path string) (*http.Response, error) {
|
|||
req.Header.Add("Content-Type", "application/json")
|
||||
resp, err := v.client.Do(req)
|
||||
|
||||
log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%s", resp)
|
||||
log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%+v", resp)
|
||||
|
||||
return resp, err
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ func (v VagrantCloudClient) Delete(path string) (*http.Response, error) {
|
|||
req.Header.Add("Content-Type", "application/json")
|
||||
resp, err := v.client.Do(req)
|
||||
|
||||
log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%s", resp)
|
||||
log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%+v", resp)
|
||||
|
||||
return resp, err
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ func (v VagrantCloudClient) Upload(path string, url string) (*http.Response, err
|
|||
|
||||
resp, err := v.client.Do(request)
|
||||
|
||||
log.Printf("Post-Processor Vagrant Cloud Upload Response: \n\n%s", resp)
|
||||
log.Printf("Post-Processor Vagrant Cloud Upload Response: \n\n%+v", resp)
|
||||
|
||||
return resp, err
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ func (v VagrantCloudClient) Post(path string, body interface{}) (*http.Response,
|
|||
|
||||
resp, err := v.client.Do(req)
|
||||
|
||||
log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%s", resp)
|
||||
log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%+v", resp)
|
||||
|
||||
return resp, err
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ func (v VagrantCloudClient) Put(path string) (*http.Response, error) {
|
|||
|
||||
resp, err := v.client.Do(req)
|
||||
|
||||
log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%s", resp)
|
||||
log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%+v", resp)
|
||||
|
||||
return resp, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue