From 9d53a99d93fc16bd3a7b6226a973aafae468a11e Mon Sep 17 00:00:00 2001 From: John Dietz Date: Mon, 23 Oct 2023 23:47:21 -0400 Subject: [PATCH] add another sleep to the top --- internal/environments/defaultEnvironments.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/environments/defaultEnvironments.go b/internal/environments/defaultEnvironments.go index 8af358aa..f82c1b87 100644 --- a/internal/environments/defaultEnvironments.go +++ b/internal/environments/defaultEnvironments.go @@ -107,7 +107,10 @@ func callApiEE(goPayload types.WorkloadClusterSet) error { httpClient := http.Client{Transport: customTransport} for i, cluster := range goPayload.Clusters { - + log.Infof("sleeping 10 seconds per cluster") + time.Sleep(10 * time.Second) + log.Infof("sleeping period complete") + log.Infof("creating cluster %s for %s", strconv.Itoa(i), cluster.ClusterName) payload, err := json.Marshal(cluster) if err != nil {