Skip to content

ocm create cluster should have a json output #383

Description

@georgettica

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 )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions