-
Notifications
You must be signed in to change notification settings - Fork 135
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
--fileoutput
flag creates empty file when using table formatter
#225
Comments
--fileoutput
flag does not work with table formatter
--fileoutput
flag does not work with table formatter--fileoutput
flag created empty file when using table formatter
--fileoutput
flag created empty file when using table formatter--fileoutput
flag creates empty file when using table formatter
Hello @aantn, |
Hi @dgdevops, |
Hello @aantn,
The second command overwrote the content of myfile so basically the content of the file was zeroized. |
Got it. Just to clarify, it works OK for your use case with |
Using the |
I've added a fix in #231. Can you confirm that it works? |
Hello @aantn, One idea, when using the table formatter there is no information (name) about the cluster the information was gathered from, when using the JSON formatter for example there is a dedicated |
Wonderful, thanks for the quick testing on your side!
…On Thu, Mar 14, 2024 at 4:06 PM dgdevops ***@***.***> wrote:
Hello @aantn <https://github.com/aantn>,
I have tested it and both the --fileoutput & --slackoutput flags work
fine.
Thank you for your quick action.
—
Reply to this email directly, view it on GitHub
<#225 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADYUBYVKL5IXHC2GEBSU23YYGVFFAVCNFSM6AAAAABEJQ3PTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJXGU2DANJWHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Describe the bug
When using the
--fileoutput
flag with or without specifying the--formatter table
option the script succeeds but creates a 0 byte file with no content.To Reproduce
Steps to reproduce the behavior:
1.7.1
/1.7.0
--fileoutput ./<your-file-name>
flag specifiedExpected behavior
The script should write out the table content to the desired output file.
Are you interested in contributing a fix for this?
Yes
Desktop (please complete the following information):
Additional context
Changing the
--formatter
flag to json, yaml, pprint results in correct file output.As a result of this issue Slack reports cannot be sent in table format.
I have tested
1.5.3
and it works perfectly so something broke in version1.6.0
.The text was updated successfully, but these errors were encountered: