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

"ssh" command does not handle unrecognized parameters properly #9

Open
czardoz opened this issue Jan 31, 2015 · 0 comments
Open

"ssh" command does not handle unrecognized parameters properly #9

czardoz opened this issue Jan 31, 2015 · 0 comments
Labels

Comments

@czardoz
Copy link
Owner

czardoz commented Jan 31, 2015

Current output:

a@test02:/$ ssh asjkdhasjkd kajsdasdj
ssh: command not found
a@test02:/$ 

Traceback:

2015-01-31 18:46:58,706 [DEBUG] (hornet.core.host) User "a" has logged into "test02" host
usage: hornet [-h] [-p PORT] [-l USERNAME] host_string
hornet: error: unrecognized arguments: kajsdasdj
2015-01-31 18:47:02,956 [ERROR] (hornet.core.shell) Unknown exception has occured
Traceback (most recent call last):
  File "/home/czardoz/git/hornet/hornet/core/shell.py", line 88, in handle
    command(params)
  File "/home/czardoz/git/hornet/hornet/core/shell.py", line 111, in run_ssh
    args = parser.parse_args(params)
  File "/usr/lib/python2.7/argparse.py", line 1693, in parse_args
    self.error(msg % ' '.join(argv))
  File "/usr/lib/python2.7/argparse.py", line 2363, in error
    self.exit(2, _('%s: error: %s\n') % (self.prog, message))
  File "/usr/lib/python2.7/argparse.py", line 2351, in exit
    _sys.exit(status)
SystemExit: 2
@czardoz czardoz added the bug label Jan 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant