Skip to content

Commit 2b49ee0

Browse files
committed
Fix spelling
1 parent be2b1cd commit 2b49ee0

File tree

4 files changed

+40
-40
lines changed

4 files changed

+40
-40
lines changed

cloudstack/cloudstack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ func NewClient(apiurl string, apikey string, secret string, verifyssl bool, opti
369369

370370
// For sync API calls this client behaves exactly the same as a standard client call, but for async API calls
371371
// this client will wait until the async job is finished or until the configured AsyncTimeout is reached. When the async
372-
// job finishes successfully it will return actual object received from the API and nil, but when the timout is
372+
// job finishes successfully it will return actual object received from the API and nil, but when the timeout is
373373
// reached it will return the initial object containing the async job ID for the running job and a warning.
374374
func NewAsyncClient(apiurl string, apikey string, secret string, verifyssl bool, options ...ClientOption) *CloudStackClient {
375375
cs := newClient(apiurl, apikey, secret, true, verifyssl, options...)

generate/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ func (as *allServices) GeneralCode() ([]byte, error) {
438438
pn("")
439439
pn("// For sync API calls this client behaves exactly the same as a standard client call, but for async API calls")
440440
pn("// this client will wait until the async job is finished or until the configured AsyncTimeout is reached. When the async")
441-
pn("// job finishes successfully it will return actual object received from the API and nil, but when the timout is")
441+
pn("// job finishes successfully it will return actual object received from the API and nil, but when the timeout is")
442442
pn("// reached it will return the initial object containing the async job ID for the running job and a warning.")
443443
pn("func NewAsyncClient(apiurl string, apikey string, secret string, verifyssl bool, options ...ClientOption) *CloudStackClient {")
444444
pn(" cs := newClient(apiurl, apikey, secret, true, verifyssl, options...)")

generate/listApis.json

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@
20592059
"type": "long"
20602060
},
20612061
{
2062-
"description": "the ID of the availablility zone for the virtual machine",
2062+
"description": "the ID of the availability zone for the virtual machine",
20632063
"name": "zoneid",
20642064
"type": "string"
20652065
},
@@ -4102,7 +4102,7 @@
41024102
"type": "string"
41034103
},
41044104
{
4105-
"description": "tthe uuid of Tungsten-Fabric nic",
4105+
"description": "the uuid of Tungsten-Fabric nic",
41064106
"length": 255,
41074107
"name": "nicuuid",
41084108
"required": false,
@@ -8472,7 +8472,7 @@
84728472
"type": "string"
84738473
},
84748474
{
8475-
"description": "the ID of the availablility zone for the virtual machine",
8475+
"description": "the ID of the availability zone for the virtual machine",
84768476
"name": "zoneid",
84778477
"type": "string"
84788478
},
@@ -15064,7 +15064,7 @@
1506415064
"type": "integer"
1506515065
},
1506615066
{
15067-
"description": "port teh ldap server is running on",
15067+
"description": "port the ldap server is running on",
1506815068
"name": "port",
1506915069
"type": "int"
1507015070
},
@@ -16729,7 +16729,7 @@
1672916729
"type": "long"
1673016730
},
1673116731
{
16732-
"description": "the ID of the availablility zone for the virtual machine",
16732+
"description": "the ID of the availability zone for the virtual machine",
1673316733
"name": "zoneid",
1673416734
"type": "string"
1673516735
},
@@ -20053,7 +20053,7 @@
2005320053
"type": "string"
2005420054
},
2005520055
{
20056-
"description": "the ID of the availablility zone for the virtual machine",
20056+
"description": "the ID of the availability zone for the virtual machine",
2005720057
"name": "zoneid",
2005820058
"type": "string"
2005920059
},
@@ -23675,7 +23675,7 @@
2367523675
"type": "string"
2367623676
},
2367723677
{
23678-
"description": "syncronization",
23678+
"description": "synchronization",
2367923679
"name": "sync",
2368023680
"type": "string"
2368123681
},
@@ -24440,7 +24440,7 @@
2444024440
"type": "string"
2444124441
},
2444224442
{
24443-
"description": "the ID of the availablility zone for the virtual machine",
24443+
"description": "the ID of the availability zone for the virtual machine",
2444424444
"name": "zoneid",
2444524445
"type": "string"
2444624446
},
@@ -38098,7 +38098,7 @@
3809838098
"type": "integer"
3809938099
},
3810038100
{
38101-
"description": "the ID of the availablility zone for the virtual machine",
38101+
"description": "the ID of the availability zone for the virtual machine",
3810238102
"name": "zoneid",
3810338103
"type": "string"
3810438104
},
@@ -41151,7 +41151,7 @@
4115141151
"type": "string"
4115241152
},
4115341153
{
41154-
"description": "the ID of the availablility zone for the virtual machine",
41154+
"description": "the ID of the availability zone for the virtual machine",
4115541155
"name": "zoneid",
4115641156
"type": "string"
4115741157
},
@@ -43891,7 +43891,7 @@
4389143891
"name": "login",
4389243892
"params": [
4389343893
{
43894-
"description": "The id of the domain that the user belongs to. If both domain and domainId are passed in, \"domainId\" parameter takes precendence",
43894+
"description": "The id of the domain that the user belongs to. If both domain and domainId are passed in, \"domainId\" parameter takes precedence",
4389543895
"length": 255,
4389643896
"name": "domainId",
4389743897
"required": false,
@@ -48373,7 +48373,7 @@
4837348373
"type": "string"
4837448374
},
4837548375
{
48376-
"description": "the ID of the availablility zone for the virtual machine",
48376+
"description": "the ID of the availability zone for the virtual machine",
4837748377
"name": "zoneid",
4837848378
"type": "string"
4837948379
},
@@ -53157,7 +53157,7 @@
5315753157
"type": "string"
5315853158
},
5315953159
{
53160-
"description": "port teh ldap server is running on",
53160+
"description": "port the ldap server is running on",
5316153161
"name": "port",
5316253162
"type": "int"
5316353163
}
@@ -55070,7 +55070,7 @@
5507055070
"type": "string"
5507155071
},
5507255072
{
55073-
"description": "the ID of the availablility zone for the virtual machine",
55073+
"description": "the ID of the availability zone for the virtual machine",
5507455074
"name": "zoneid",
5507555075
"type": "string"
5507655076
},
@@ -58105,7 +58105,7 @@
5810558105
"type": "long"
5810658106
},
5810758107
{
58108-
"description": "the ID of the availablility zone for the virtual machine",
58108+
"description": "the ID of the availability zone for the virtual machine",
5810958109
"name": "zoneid",
5811058110
"type": "string"
5811158111
},
@@ -59756,7 +59756,7 @@
5975659756
"type": "string"
5975759757
},
5975859758
{
59759-
"description": "the ID of the availablility zone for the virtual machine",
59759+
"description": "the ID of the availability zone for the virtual machine",
5976059760
"name": "zoneid",
5976159761
"type": "string"
5976259762
},
@@ -61799,7 +61799,7 @@
6179961799
"type": "long"
6180061800
},
6180161801
{
61802-
"description": "the ID of the availablility zone for the virtual machine",
61802+
"description": "the ID of the availability zone for the virtual machine",
6180361803
"name": "zoneid",
6180461804
"type": "string"
6180561805
},
@@ -62835,7 +62835,7 @@
6283562835
"type": "string"
6283662836
},
6283762837
{
62838-
"description": "type of the name in LDAP which is linke to the domain",
62838+
"description": "type of the name in LDAP which is linked to the domain",
6283962839
"name": "type",
6284062840
"type": "string"
6284162841
},
@@ -64274,7 +64274,7 @@
6427464274
"type": "string"
6427564275
},
6427664276
{
64277-
"description": "the ID of the availablility zone for the virtual machine",
64277+
"description": "the ID of the availability zone for the virtual machine",
6427864278
"name": "zoneid",
6427964279
"type": "string"
6428064280
},
@@ -68692,7 +68692,7 @@
6869268692
"type": "string"
6869368693
},
6869468694
{
68695-
"description": "the ID of the availablility zone for the virtual machine",
68695+
"description": "the ID of the availability zone for the virtual machine",
6869668696
"name": "zoneid",
6869768697
"type": "string"
6869868698
},
@@ -71030,7 +71030,7 @@
7103071030
"type": "string"
7103171031
},
7103271032
{
71033-
"description": "the ID of the availablility zone for the virtual machine",
71033+
"description": "the ID of the availability zone for the virtual machine",
7103471034
"name": "zoneid",
7103571035
"type": "string"
7103671036
},
@@ -75462,7 +75462,7 @@
7546275462
},
7546375463
{},
7546475464
{
75465-
"description": "the ID of the availablility zone for the virtual machine",
75465+
"description": "the ID of the availability zone for the virtual machine",
7546675466
"name": "zoneid",
7546775467
"type": "string"
7546875468
},
@@ -76785,7 +76785,7 @@
7678576785
},
7678676786
{},
7678776787
{
76788-
"description": "syncronization",
76788+
"description": "synchronization",
7678976789
"name": "sync",
7679076790
"type": "string"
7679176791
},
@@ -78532,7 +78532,7 @@
7853278532
"type": "set"
7853378533
},
7853478534
{
78535-
"description": "the ID of the availablility zone for the virtual machine",
78535+
"description": "the ID of the availability zone for the virtual machine",
7853678536
"name": "zoneid",
7853778537
"type": "string"
7853878538
}
@@ -83266,7 +83266,7 @@
8326683266
"type": "string"
8326783267
},
8326883268
{
83269-
"description": "the ID of the availablility zone for the virtual machine",
83269+
"description": "the ID of the availability zone for the virtual machine",
8327083270
"name": "zoneid",
8327183271
"type": "string"
8327283272
},
@@ -93540,7 +93540,7 @@
9354093540
"type": "string"
9354193541
},
9354293542
{
93543-
"description": "the ID of the availablility zone for the virtual machine",
93543+
"description": "the ID of the availability zone for the virtual machine",
9354493544
"name": "zoneid",
9354593545
"type": "string"
9354693546
},
@@ -93891,7 +93891,7 @@
9389193891
"name": "resetApiLimit",
9389293892
"params": [
9389393893
{
93894-
"description": "the ID of the acount whose limit to be reset",
93894+
"description": "the ID of the account whose limit to be reset",
9389593895
"length": 255,
9389693896
"name": "account",
9389793897
"related": "enableAccount,listAccounts,listAccounts",
@@ -94207,7 +94207,7 @@
9420794207
},
9420894208
{},
9420994209
{
94210-
"description": "port teh ldap server is running on",
94210+
"description": "port the ldap server is running on",
9421194211
"name": "port",
9421294212
"type": "int"
9421394213
},
@@ -96693,7 +96693,7 @@
9669396693
"type": "string"
9669496694
},
9669596695
{
96696-
"description": "the ID of the availablility zone for the virtual machine",
96696+
"description": "the ID of the availability zone for the virtual machine",
9669796697
"name": "zoneid",
9669896698
"type": "string"
9669996699
},
@@ -98780,7 +98780,7 @@
9878098780
},
9878198781
{},
9878298782
{
98783-
"description": "type of the name in LDAP which is linke to the domain",
98783+
"description": "type of the name in LDAP which is linked to the domain",
9878498784
"name": "type",
9878598785
"type": "string"
9878698786
},
@@ -110711,7 +110711,7 @@
110711110711
"related": "attachIso,destroyVirtualMachine,scaleVirtualMachine,removeNicFromVirtualMachine,startVirtualMachine,stopVirtualMachine,attachIso,detachIso,updateVMAffinityGroup,addNicToVirtualMachine,removeNicFromVirtualMachine,updateDefaultNicForVirtualMachine,deployVirtualMachine,destroyVirtualMachine,rebootVirtualMachine,resetPasswordForVirtualMachine,resetSSHKeyForVirtualMachine,restoreVirtualMachine,startVirtualMachine,stopVirtualMachine,updateVirtualMachine,changeServiceForVirtualMachine,revertToVMSnapshot,listVirtualMachines",
110712110712
"response": [
110713110713
{
110714-
"description": "the ID of the availablility zone for the virtual machine",
110714+
"description": "the ID of the availability zone for the virtual machine",
110715110715
"name": "zoneid",
110716110716
"type": "string"
110717110717
},
@@ -114577,7 +114577,7 @@
114577114577
"type": "string"
114578114578
},
114579114579
{
114580-
"description": "the ID of the availablility zone for the virtual machine",
114580+
"description": "the ID of the availability zone for the virtual machine",
114581114581
"name": "zoneid",
114582114582
"type": "string"
114583114583
},
@@ -119191,7 +119191,7 @@
119191119191
"type": "map"
119192119192
},
119193119193
{
119194-
"description": "the ID of the availablility zone for the virtual machine",
119194+
"description": "the ID of the availability zone for the virtual machine",
119195119195
"name": "zoneid",
119196119196
"type": "string"
119197119197
},
@@ -126558,7 +126558,7 @@
126558126558
"type": "resourceiconresponse"
126559126559
},
126560126560
{
126561-
"description": "the ID of the availablility zone for the virtual machine",
126561+
"description": "the ID of the availability zone for the virtual machine",
126562126562
"name": "zoneid",
126563126563
"type": "string"
126564126564
},
@@ -128294,7 +128294,7 @@
128294128294
"type": "string"
128295128295
},
128296128296
{
128297-
"description": "the ID of the availablility zone for the virtual machine",
128297+
"description": "the ID of the availability zone for the virtual machine",
128298128298
"name": "zoneid",
128299128299
"type": "string"
128300128300
},
@@ -130551,7 +130551,7 @@
130551130551
"type": "string"
130552130552
},
130553130553
{
130554-
"description": "the ID of the availablility zone for the virtual machine",
130554+
"description": "the ID of the availability zone for the virtual machine",
130555130555
"name": "zoneid",
130556130556
"type": "string"
130557130557
},

test/cloudstack_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,15 @@ func TestUUID(t *testing.T) {
150150
t.Errorf("could not unserialize long into UUID: %s", err)
151151
}
152152
if res.Value != "4801878" {
153-
t.Errorf("unepected value '%s', expecting 4801878", res.Value)
153+
t.Errorf("unexpected value '%s', expecting 4801878", res.Value)
154154
}
155155

156156
res.Value = ""
157157
if err := json.Unmarshal([]byte(valString), &res); err != nil {
158158
t.Errorf("could not unserialize string into UUID: %s", err)
159159
}
160160
if res.Value != "994801878" {
161-
t.Errorf("unepected value '%s', expecting 994801878", res.Value)
161+
t.Errorf("unexpected value '%s', expecting 994801878", res.Value)
162162
}
163163

164164
res.Value = ""

0 commit comments

Comments
 (0)