Skip to content

Commit

Permalink
Added sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
GJSBRT committed Apr 18, 2023
1 parent e7c56c4 commit b4deb60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dutchis/virtualserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"io/ioutil"
"net/http"
"bytes"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down Expand Up @@ -178,6 +179,7 @@ func resourceVirtualServerCreate(d *schema.ResourceData, meta interface{}) error
d.SetId(virtualserver.UUID)

logger.Info().Msg("Created new virtual server")
time.Sleep(5 * time.Second)
lock.unlock()
return resourceVirtualServerRead(d, meta)
}
Expand Down

0 comments on commit b4deb60

Please sign in to comment.