We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Using --fileoutput result.json creates an empty file.
--fileoutput result.json
To Reproduce
kind create cluster helm install monitoring prometheus-community/kube-prometheus-stack -n monitoring --create-namespace python krr.py simple -f json --fileoutput result.json
The whole output is being printed to stdout. The file result.json is empty.
result.json
$ ls -l result.json -rw-r--r-- 1 mateus mateus 0 dez 14 15:57 result.json
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Are you interested in contributing a fix for this? Yes/no. If yes, we will provide guidance what parts of the code to modify and help you.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
A simple workaround to have json saved into a file is to print from ^{ to ^}:
^{
^}
$ python krr.py simple -f json | sed -ne '/^{/,/^}/p' | tr -d '\n'| jq -r > result.json
tr -d '\n' is required in order to transform multiline-strings into single line.
tr -d '\n'
Sorry, something went wrong.
Should be fixed in #218
Can you confirm please?
Confirmed it's now working. Thanks a lot.
No branches or pull requests
Describe the bug
Using
--fileoutput result.json
creates an empty file.To Reproduce
The whole output is being printed to stdout. The file
result.json
is empty.Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Are you interested in contributing a fix for this?
Yes/no. If yes, we will provide guidance what parts of the code to modify and help you.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: