Skip to content

Commit 520cc9f

Browse files
mjuragaGopher Bot
authored andcommitted
BUG/MINOR: runtime: change a typo and boolean type in server
1 parent 99a78eb commit 520cc9f

File tree

8 files changed

+19
-15
lines changed

8 files changed

+19
-15
lines changed

.aspell.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ allowed:
7171
- failsafe
7272
- fbt
7373
- fcgi
74+
- fqdn
7475
- fmt
7576
- usefcgiapp
7677
- formatter
@@ -109,6 +110,7 @@ allowed:
109110
- ioutil
110111
- ipam
111112
- istanbul
113+
- iweight
112114
- jose
113115
- json
114116
- jsonpath
@@ -203,6 +205,7 @@ allowed:
203205
- userlist
204206
- userlists
205207
- utils
208+
- uweight
206209
- vfg
207210
- vite
208211
- vrrp

models/runtime_server.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models/runtime_server_compare_test.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models/runtimeserver_diff_generated.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models/runtimeserver_equal_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/servers.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,12 @@ func parseRuntimeServer(line string) *models.RuntimeServer {
223223
checkState := parseInt64P(fields[13])
224224
agentState := parseInt64P(fields[14])
225225
backendForcedID := parseInt64P(fields[15])
226-
forecedID := parseInt64P(fields[16])
226+
forcedID := parseInt64P(fields[16])
227227
checkPort := parseInt64P(fields[21])
228228
agentPort := parseInt64P(fields[24])
229229

230-
useSsl := fields[20] == "1"
230+
useSslVal := fields[20] == "1"
231+
useSsl := &useSslVal
231232

232233
admState, _ := misc.GetServerAdminState(fields[6])
233234

@@ -260,7 +261,7 @@ func parseRuntimeServer(line string) *models.RuntimeServer {
260261
CheckState: checkState,
261262
AgentState: agentState,
262263
BackendForcedID: backendForcedID,
263-
ForecedID: forecedID,
264+
ForcedID: forcedID,
264265
Fqdn: fields[17],
265266
Srvrecord: fields[19],
266267
UseSsl: useSsl,

specification/build/haproxy_spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9864,7 +9864,7 @@ definitions:
98649864
readOnly: true
98659865
type: integer
98669866
x-nullable: true
9867-
foreced_id:
9867+
forced_id:
98689868
readOnly: true
98699869
type: integer
98709870
x-nullable: true

specification/models/runtime/server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ server:
7171
type: integer
7272
readOnly: true
7373
x-nullable: true
74-
foreced_id:
74+
forced_id:
7575
type: integer
7676
readOnly: true
7777
x-nullable: true

0 commit comments

Comments
 (0)