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

Provide --json parameter as an alternative option to --json-file #76

Open
snowch opened this issue Jun 20, 2020 · 1 comment
Open

Provide --json parameter as an alternative option to --json-file #76

snowch opened this issue Jun 20, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@snowch snowch added enhancement New feature or request good first issue Good for newcomers labels Jun 20, 2020
@snowch
Copy link
Member Author

snowch commented Jun 20, 2020

Until this gets added, a workaround is to use bash process substition <():

hpecp httpclient post /api/v2/worker/k8shost/8 --json-file \
  <(echo '{ "op_spec": { "ephemeral_disks": ["/dev/nvme2n1"]}, "op": "storage"}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant