Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocm create cluster should have a json output #383

Open
georgettica opened this issue May 1, 2022 · 0 comments
Open

ocm create cluster should have a json output #383

georgettica opened this issue May 1, 2022 · 0 comments

Comments

@georgettica
Copy link
Contributor

sometimes we want to script ocm create cluster and I don't want to

$ OCM_CREATE=$(ocm create cluster ${CLUSTER_NAME})
$ CLUSTER_ID=$(echo $OCM_CREATE | grep '^ID:' | awk '{print $2}')

and something along the lines of

$ OCM_CREATE_JSON=$(ocm create cluster ${CLUSTER_NAME} --output=json )
$ CLUSTER_ID=$( echo $OCM_CREATE | jq .id )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant