Skip to content

Commit f79ba80

Browse files
committed
fix for DVH availability
1 parent 395039f commit f79ba80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

oci/core_instance_resource.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"log"
1111
"strconv"
1212
"strings"
13+
"time"
1314

1415
"github.com/hashicorp/terraform/helper/customdiff"
1516

@@ -544,6 +545,8 @@ func (s *CoreInstanceResourceCrud) Create() error {
544545
if dedicatedVmHostId, ok := s.D.GetOkExists("dedicated_vm_host_id"); ok {
545546
tmp := dedicatedVmHostId.(string)
546547
request.DedicatedVmHostId = &tmp
548+
//@codegen: Adding wait to ensure that the DVH is available
549+
time.Sleep(1 * time.Minute)
547550
}
548551

549552
if definedTags, ok := s.D.GetOkExists("defined_tags"); ok {

0 commit comments

Comments
 (0)