Closed srinandan closed 3 months ago
instances delete
and other APIs that return an LRO should include --wait
Error condition waits 10 seconds even on immediate result
gorun instances create --org=$ORG --location=us-east1 --name=us-east1 --wait
{
"error": {
"code": 409,
"message": "instance \"organizations/apigeex-custom/instances/us-east1\" already exists",
"status": "ALREADY_EXISTS",
"details": [
{
"@type": "type.googleapis.com/google.rpc.RequestInfo",
"requestId": "2905311160183436725"
}
]
}
}
Checking creation status in 10 seconds
Instance creation failed with status: CREATING
This addresses the bug when an instance already exists or otherwise fails.
This PR doesn't contain wait
for deletion.
LGTM
Attaching an env to an instance waits but displays incorrect messages