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

connstat should output possible fields when providing an invalid command-line field #16

Open
sebroy opened this issue Oct 21, 2019 · 1 comment

Comments

@sebroy
Copy link

sebroy commented Oct 21, 2019

connstat outputs a python backtrace when I try and output an invalid field:

delphix@localhost:~$ connstat -e -F lport=2049 -o garbage -i 1
Traceback (most recent call last):
  File "/usr/bin/connstat", line 209, in <module>
    output_fields.append(Field[item])
  File "/usr/lib/python3.6/enum.py", line 329, in __getitem__
    return cls._member_map_[name]
KeyError: 'garbage'
@sdimitro
Copy link
Contributor

I think this issue has been fixed and we should close this entry. Currently:

$ connstat -e -F lport=2049 -o garbage -i 1
Unknown field: 'garbage

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

No branches or pull requests

2 participants