-
Notifications
You must be signed in to change notification settings - Fork 35
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
Parsing connection port fails whit whitespace after port number #15
Comments
@twdkeule thank you for using the diagnostics collection script and providing us feedback! Happy to received PRs as well. I noticed that the command in question is working without any hiccups on the system where I tested this and it is correctly pulling the port details for me as shown below,
Alternatively, I also did run your command which also yielded the same output,
so, I don't think we need to get this changed in here at this time. |
Ive encountered a similar problem on the listen_address. It didnt fail the collection, but ended up being unable to parse the nodes IP and the diag collected had X folders "listen_address: " which I then had to correct manually. For this particular scenario above, to handle white spaces or making sure we target the port info only, I would consider using regex in the sed as we know a port will be defined by a set of 1 to 5 digits. ie: Would also be of interest to confirm the sed version used in both tests above (OP + response) as I've encountered issues in the past on some AMI build where sed isnt up to date |
When parsing the connection port, the config name/option is included because the sed rege does not match:
Solution: allow whitespace after port number with
\w*
:I noticed the parsing is always this strict, eg when parsing IP adresses.
The text was updated successfully, but these errors were encountered: