Skip to content

Commit fa8866f

Browse files
authored
fix status issue with vni on is_security_group_target (#6233)
1 parent c211c4b commit fa8866f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ibm/service/vpc/resource_ibm_is_security_group_target.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func isWaitForVNISgTargetCreateAvailable(sess *vpcv1.VpcV1, vniId string, timeou
366366

367367
stateConf := &resource.StateChangeConf{
368368
Pending: []string{"pending", "updating", "waiting"},
369-
Target: []string{isLBProvisioningDone, ""},
369+
Target: []string{isLBProvisioningDone, "", "stable"},
370370
Refresh: isVNISgTargetRefreshFunc(sess, vniId),
371371
Timeout: timeout,
372372
Delay: 10 * time.Second,
@@ -384,11 +384,11 @@ func isVNISgTargetRefreshFunc(vpcClient *vpcv1.VpcV1, vniId string) resource.Sta
384384
}
385385
vni, response, err := vpcClient.GetVirtualNetworkInterface(getVNIOptions)
386386
if err != nil {
387-
return nil, "", fmt.Errorf("[ERROR] Error Getting Load Balancer : %s\n%s", err, response)
387+
return nil, "", fmt.Errorf("[ERROR] Error Getting virtual network interface : %s\n%s", err, response)
388388
}
389389

390390
if *vni.LifecycleState == "failed" {
391-
return vni, *vni.LifecycleState, fmt.Errorf("Network Interface creationg failed with status %s ", *vni.LifecycleState)
391+
return vni, *vni.LifecycleState, fmt.Errorf("Virtual Network Interface creating failed with status %s ", *vni.LifecycleState)
392392
}
393393
return vni, *vni.LifecycleState, nil
394394
}

0 commit comments

Comments
 (0)