fix: fix tests

This commit is contained in:
Marcel S. Henselin 2026-02-10 13:12:11 +01:00
parent b737875c68
commit 071f3b9249
8 changed files with 249 additions and 242 deletions

View file

@ -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
}