Skip to content

Commit 97cbfed

Browse files
authored
fix(baremetal): return correct value in WaitForServerPrivateNetworks (#1473)
1 parent facb0d1 commit 97cbfed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/baremetal/v1/server_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ func (s *PrivateNetworkAPI) WaitForServerPrivateNetworks(req *WaitForServerPriva
248248
for i := range res.ServerPrivateNetworks {
249249
_, isTerminal := terminalStatus[res.ServerPrivateNetworks[i].Status]
250250
if !isTerminal {
251-
return res, isTerminal, nil
251+
return res.ServerPrivateNetworks, isTerminal, nil
252252
}
253253
}
254-
return res, true, err
254+
return res.ServerPrivateNetworks, true, err
255255
},
256256
Timeout: timeout,
257257
IntervalStrategy: async.LinearIntervalStrategy(retryInterval),

0 commit comments

Comments
 (0)