Skip to content

Commit 58c02d1

Browse files
author
Kevin Li
committed
Reverting changes to newRequest
1 parent 5d1507e commit 58c02d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cloudstack/cloudstack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ func (cs *CloudStackClient) GetAsyncJobResult(jobid string, timeout int64) (json
511511
// Execute the request against a CS API. Will return the raw JSON data returned by the API and nil if
512512
// no error occurred. If the API returns an error the result will be nil and the HTTP error code and CS
513513
// error details. If a processing (code) error occurs the result will be nil and the generated error
514-
func (cs *CloudStackClient) newPostRequest(api string, params url.Values) (json.RawMessage, error) {
514+
func (cs *CloudStackClient) newRequest(api string, params url.Values) (json.RawMessage, error) {
515515
return cs.newRawRequest(api, false, params)
516516
}
517517

generate/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ func (as *allServices) GeneralCode() ([]byte, error) {
560560
pn("// Execute the request against a CS API. Will return the raw JSON data returned by the API and nil if")
561561
pn("// no error occurred. If the API returns an error the result will be nil and the HTTP error code and CS")
562562
pn("// error details. If a processing (code) error occurs the result will be nil and the generated error")
563-
pn("func (cs *CloudStackClient) newPostRequest(api string, params url.Values) (json.RawMessage, error) {")
563+
pn("func (cs *CloudStackClient) newRequest(api string, params url.Values) (json.RawMessage, error) {")
564564
pn(" return cs.newRawRequest(api, false, params)")
565565
pn("}")
566566
pn("")

0 commit comments

Comments
 (0)