Skip to content

Commit 20cbd1c

Browse files
authored
Fix spelling (#62)
1 parent 02af802 commit 20cbd1c

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

cloudstack/NetworkService.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func (s *NetworkService) NewAddOpenDaylightControllerParams(password string, phy
351351
return p
352352
}
353353

354-
// Adds an OpenDyalight controler
354+
// Adds an OpenDaylight controller
355355
func (s *NetworkService) AddOpenDaylightController(p *AddOpenDaylightControllerParams) (*AddOpenDaylightControllerResponse, error) {
356356
resp, err := s.cs.newRequest("addOpenDaylightController", p.toURLValues())
357357
if err != nil {
@@ -2210,7 +2210,7 @@ func (s *NetworkService) NewDeleteOpenDaylightControllerParams(id string) *Delet
22102210
return p
22112211
}
22122212

2213-
// Removes an OpenDyalight controler
2213+
// Removes an OpenDaylight controller
22142214
func (s *NetworkService) DeleteOpenDaylightController(p *DeleteOpenDaylightControllerParams) (*DeleteOpenDaylightControllerResponse, error) {
22152215
resp, err := s.cs.newRequest("deleteOpenDaylightController", p.toURLValues())
22162216
if err != nil {
@@ -4034,7 +4034,7 @@ func (s *NetworkService) GetOpenDaylightControllerByID(id string, opts ...Option
40344034
return nil, l.Count, fmt.Errorf("There is more then one result for OpenDaylightController UUID: %s!", id)
40354035
}
40364036

4037-
// Lists OpenDyalight controllers
4037+
// Lists OpenDaylight controllers
40384038
func (s *NetworkService) ListOpenDaylightControllers(p *ListOpenDaylightControllersParams) (*ListOpenDaylightControllersResponse, error) {
40394039
resp, err := s.cs.newRequest("listOpenDaylightControllers", p.toURLValues())
40404040
if err != nil {

cloudstack/cloudstack.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,21 +446,21 @@ func (cs *CloudStackClient) GetAsyncJobResult(jobid string, timeout int64) (json
446446
}
447447

448448
// Execute the request against a CS API. Will return the raw JSON data returned by the API and nil if
449-
// no error occured. If the API returns an error the result will be nil and the HTTP error code and CS
449+
// no error occurred. If the API returns an error the result will be nil and the HTTP error code and CS
450450
// error details. If a processing (code) error occurs the result will be nil and the generated error
451451
func (cs *CloudStackClient) newRequest(api string, params url.Values) (json.RawMessage, error) {
452452
return cs.newRawRequest(api, false, params)
453453
}
454454

455455
// Execute the request against a CS API using POST. Will return the raw JSON data returned by the API and
456-
// nil if no error occured. If the API returns an error the result will be nil and the HTTP error code
456+
// nil if no error occurred. If the API returns an error the result will be nil and the HTTP error code
457457
// and CS error details. If a processing (code) error occurs the result will be nil and the generated error
458458
func (cs *CloudStackClient) newPostRequest(api string, params url.Values) (json.RawMessage, error) {
459459
return cs.newRawRequest(api, true, params)
460460
}
461461

462462
// Execute a raw request against a CS API. Will return the raw JSON data returned by the API and nil if
463-
// no error occured. If the API returns an error the result will be nil and the HTTP error code and CS
463+
// no error occurred. If the API returns an error the result will be nil and the HTTP error code and CS
464464
// error details. If a processing (code) error occurs the result will be nil and the generated error
465465
func (cs *CloudStackClient) newRawRequest(api string, post bool, params url.Values) (json.RawMessage, error) {
466466
params.Set("apiKey", cs.apiKey)

generate/generate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,21 +515,21 @@ func (as *allServices) GeneralCode() ([]byte, error) {
515515
pn("}")
516516
pn("")
517517
pn("// Execute the request against a CS API. Will return the raw JSON data returned by the API and nil if")
518-
pn("// no error occured. If the API returns an error the result will be nil and the HTTP error code and CS")
518+
pn("// no error occurred. If the API returns an error the result will be nil and the HTTP error code and CS")
519519
pn("// error details. If a processing (code) error occurs the result will be nil and the generated error")
520520
pn("func (cs *CloudStackClient) newRequest(api string, params url.Values) (json.RawMessage, error) {")
521521
pn(" return cs.newRawRequest(api, false, params)")
522522
pn("}")
523523
pn("")
524524
pn("// Execute the request against a CS API using POST. Will return the raw JSON data returned by the API and")
525-
pn("// nil if no error occured. If the API returns an error the result will be nil and the HTTP error code")
525+
pn("// nil if no error occurred. If the API returns an error the result will be nil and the HTTP error code")
526526
pn("// and CS error details. If a processing (code) error occurs the result will be nil and the generated error")
527527
pn("func (cs *CloudStackClient) newPostRequest(api string, params url.Values) (json.RawMessage, error) {")
528528
pn(" return cs.newRawRequest(api, true, params)")
529529
pn("}")
530530
pn("")
531531
pn("// Execute a raw request against a CS API. Will return the raw JSON data returned by the API and nil if")
532-
pn("// no error occured. If the API returns an error the result will be nil and the HTTP error code and CS")
532+
pn("// no error occurred. If the API returns an error the result will be nil and the HTTP error code and CS")
533533
pn("// error details. If a processing (code) error occurs the result will be nil and the generated error")
534534
pn("func (cs *CloudStackClient) newRawRequest(api string, post bool, params url.Values) (json.RawMessage, error) {")
535535
pn(" params.Set(\"apiKey\", cs.apiKey)")

generate/listApis.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39940,7 +39940,7 @@
3994039940
]
3994139941
},
3994239942
{
39943-
"description": "Lists OpenDyalight controllers",
39943+
"description": "Lists OpenDaylight controllers",
3994439944
"isasync": false,
3994539945
"name": "listOpenDaylightControllers",
3994639946
"params": [
@@ -50031,7 +50031,7 @@
5003150031
"since": "4.15.0"
5003250032
},
5003350033
{
50034-
"description": "Removes an OpenDyalight controler",
50034+
"description": "Removes an OpenDaylight controller",
5003550035
"isasync": true,
5003650036
"name": "deleteOpenDaylightController",
5003750037
"params": [
@@ -109117,7 +109117,7 @@
109117109117
]
109118109118
},
109119109119
{
109120-
"description": "Adds an OpenDyalight controler",
109120+
"description": "Adds an OpenDaylight controller",
109121109121
"isasync": true,
109122109122
"name": "addOpenDaylightController",
109123109123
"params": [

0 commit comments

Comments
 (0)