Skip to content

Commit 6505d08

Browse files
authored
fix(vpcgw): update terminal states in WaitForGateway (#1479)
1 parent 1af141c commit 6505d08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/vpcgw/v1/vpcgw_utils.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ func (s *API) WaitForGateway(req *WaitForGatewayRequest, opts ...scw.RequestOpti
3434
}
3535

3636
terminalStatus := map[GatewayStatus]struct{}{
37-
GatewayStatusRunning: {},
38-
GatewayStatusDeleted: {},
3937
GatewayStatusUnknown: {},
38+
GatewayStatusStopped: {},
39+
GatewayStatusRunning: {},
4040
GatewayStatusFailed: {},
41+
GatewayStatusDeleted: {},
42+
GatewayStatusLocked: {},
4143
}
4244

4345
gateway, err := async.WaitSync(&async.WaitSyncConfig{

0 commit comments

Comments
 (0)