Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve GetCluster message when Subscription exists but is inactive
First step towards openshift-online#517. At least doesn't lie to user and gives hint how to find past data: Error: Can't retrieve cluster for key '0e68a621-c00e-4bbf-a4bb-9915ae6cc947': Cluster was Deprovisioned, see `ocm get subscription 2S434jffVG4fSgDdK4cbkDTxVNp` for details This affects ALL commands that use `GetCluster` helper. Behavior change: when there is 1 active cluster and also 1+ past clusters reusing same display_name, previously the active one was used; now will refuse treating them as ambiguous: > ocm get subs -p search="display_name in ('servheredia')" | jq .items[].status | sort | uniq -c 4 "Deprovisioned" 1 "Reserved" > ocm describe cluster servheredia Error: Can't retrieve cluster for key 'servheredia': There are 5 subscriptions with cluster identifier or name 'servheredia'
- Loading branch information