bsdci / ioc

libioc command line tool for BSD jail management
Other
16 stars 1 forks source link

Non-root commands cannot be executed #32

Closed gronke closed 5 years ago

gronke commented 5 years ago
$ ioc pkg myjail git-lite
Traceback (most recent call last):
  File "/usr/local/bin/ioc", line 10, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1061, in invoke
    cmd_name, cmd, args = self.resolve_command(ctx, args)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1100, in resolve_command
    cmd = self.get_command(ctx, cmd_name)
  File "/usr/local/lib/python3.6/site-packages/ioc_cli/__init__.py", line 156, in get_command
    if mod.__rootcmd__ and "--help" not in sys.argv[1:]:
AttributeError: module 'ioc_cli.pkg' has no attribute '__rootcmd__'