Log org/repo details on timeout exceeded

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
This commit is contained in:
Mihaela Balutoiu 2023-08-07 10:51:46 +03:00
parent 1bd288f56d
commit 191d44fb3f

View file

@ -657,6 +657,10 @@ func WaitRepoInstance(timeout time.Duration) {
time.Sleep(5 * time.Second) time.Sleep(5 * time.Second)
timeWaited += 5 timeWaited += 5
} }
repo, err := getRepo(cli, authToken, repoID)
handleError(err)
printResponse(repo)
instanceDetails, err := getInstance(cli, authToken, instance.Name) instanceDetails, err := getInstance(cli, authToken, instance.Name)
handleError(err) handleError(err)
printResponse(instanceDetails) printResponse(instanceDetails)
@ -823,6 +827,10 @@ func WaitOrgInstance(timeout time.Duration) {
time.Sleep(5 * time.Second) time.Sleep(5 * time.Second)
timeWaited += 5 timeWaited += 5
} }
org, err := getOrg(cli, authToken, orgID)
handleError(err)
printResponse(org)
instanceDetails, err := getInstance(cli, authToken, instance.Name) instanceDetails, err := getInstance(cli, authToken, instance.Name)
handleError(err) handleError(err)
printResponse(instanceDetails) printResponse(instanceDetails)