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

navi display agents throws error after subset of data #15

Closed
mroshan1 opened this issue Nov 10, 2020 · 2 comments
Closed

navi display agents throws error after subset of data #15

mroshan1 opened this issue Nov 10, 2020 · 2 comments

Comments

@mroshan1
Copy link

When trying to display agent, i get following error after it returns a subset of data. . Appreciate if you can take a look and suggest a fix.

Thanks

% navi display agents | more
Hey Listen!

Agent Name                                     IP Address           Last Connect Time    Last Scanned Time    Status     Groups
------------------------------------------------------------------------------------------------------------------------------------------------------
alation-prod                                   x.x.x.x           Nov 10 13:05:57      Nov 09 16:41:24      on          IT Engineering
..
elastic5.ec2.packerbuild                       x.x.xx          Nov 09 02:26:09      Not Scanned          off

Traceback (most recent call last):
  File "/Users//Documents/src/navi/venv-navi/bin/navi", line 11, in <module>
    load_entry_point('navi-pro==6.1.8', 'console_scripts', 'navi')()
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users//Documents/src/navi/venv-navi/lib/python3.8/site-packages/navi_pro-6.1.8-py3.8.egg/navi/plugins/display.py", line 211, in agents
KeyError: 'last_connect'
@packetchaos
Copy link
Owner

packetchaos commented Nov 10, 2020 via email

@mroshan1
Copy link
Author

Thank you, I find your tool very helpful. I think you must have gone through same pain points that we are facing, hence trying to report these to make the tool really useful for a bigger community.

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

No branches or pull requests

2 participants