fix: fix tests
This commit is contained in:
parent
b737875c68
commit
071f3b9249
8 changed files with 249 additions and 242 deletions
|
|
@ -118,12 +118,12 @@ func CreateInstanceWaitHandler(
|
|||
instanceCreated = true
|
||||
instanceGetResponse = s
|
||||
case InstanceStateSuccess:
|
||||
if *s.Network.AccessScope == "SNA" {
|
||||
if s.Network == nil || s.Network.InstanceAddress == nil {
|
||||
if s.Network.AccessScope != nil && *s.Network.AccessScope == "SNA" {
|
||||
if s.Network == nil || s.Network.InstanceAddress == nil || *s.Network.InstanceAddress == "" {
|
||||
tflog.Warn(ctx, "Waiting for instance_address")
|
||||
return false, nil, nil
|
||||
}
|
||||
if s.Network.RouterAddress == nil {
|
||||
if s.Network.RouterAddress == nil || *s.Network.RouterAddress == "" {
|
||||
tflog.Info(ctx, "Waiting for router_address")
|
||||
return false, nil, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue