File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ func (h *ReplaceRuntimeServerHandlerImpl) Handle(params server.ReplaceRuntimeSer
86
86
}
87
87
88
88
// change operational state
89
- if rs .OperationalState != params .Data .OperationalState {
89
+ if params . Data . OperationalState != "" && rs .OperationalState != params .Data .OperationalState {
90
90
err = h .Client .Runtime .SetServerHealth (params .Backend , params .Name , params .Data .OperationalState )
91
91
if err != nil {
92
92
e := misc .HandleError (err )
@@ -95,7 +95,7 @@ func (h *ReplaceRuntimeServerHandlerImpl) Handle(params server.ReplaceRuntimeSer
95
95
}
96
96
97
97
// change admin state
98
- if rs .AdminState != params .Data .AdminState {
98
+ if params . Data . AdminState != "" && rs .AdminState != params .Data .AdminState {
99
99
err = h .Client .Runtime .SetServerState (params .Backend , params .Name , params .Data .AdminState )
100
100
if err != nil {
101
101
e := misc .HandleError (err )
You can’t perform that action at this time.
0 commit comments