Skip to content

Commit 8686e4d

Browse files
committed
adjust waiters
1 parent 10c6699 commit 8686e4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/loadbalancer/loadbalancer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ func main() {
4545
Networks: &[]loadbalancer.Network{
4646
{
4747
NetworkId: utils.Ptr("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),
48-
Role: utils.Ptr("1"),
48+
Role: utils.Ptr(loadbalancer.NETWORKROLE_LISTENERS_AND_TARGETS),
4949
},
5050
},
5151
Listeners: &[]loadbalancer.Listener{
5252
{
5353
DisplayName: utils.Ptr("example-listener"),
5454
Port: utils.Ptr(int64(1)),
55-
Protocol: utils.Ptr("1"),
55+
Protocol: utils.Ptr(loadbalancer.LISTENERPROTOCOL_TCP),
5656
TargetPool: utils.Ptr("example-target-pool"),
5757
},
5858
},

services/ske/wait/wait_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func TestRotateCredentialsWaitHandler(t *testing.T) {
218218
wantRes = &ske.Cluster{
219219
Name: &name,
220220
Status: &ske.ClusterStatus{
221-
Aggregated: &tt.resourceState,
221+
Aggregated: utils.Ptr(tt.resourceState),
222222
},
223223
}
224224
}

0 commit comments

Comments
 (0)