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

[BUG] the nav command crashes when run without arguments #2601

Closed
lunkwill42 opened this issue Mar 24, 2023 · 1 comment · Fixed by #2603
Closed

[BUG] the nav command crashes when run without arguments #2601

lunkwill42 opened this issue Mar 24, 2023 · 1 comment · Fixed by #2603
Assignees
Labels

Comments

@lunkwill42
Copy link
Member

Describe the bug

The nav command line program crashes with an AttributeError if run without arguments.

It's not clear when this started happening, but the first observation I've noted goes back to March of 2022.

To Reproduce

  1. SSH to a NAV server (or start a NAV development container and enter it using docker exec)
  2. Run the nav command
  3. See error

Expected behavior

IIRC, the original behavior is just to print the help screen, as the nav command itself does nothing unless a sub-command is specified.

Tracebacks

Traceback (most recent call last):
  File "/usr/sbin/nav", line 342, in <module>
    main(sys.argv[1:])
  File "/usr/sbin/nav", line 53, in main
    args.func(args)
AttributeError: 'Namespace' object has no attribute 'func'

Environment (please complete the following information):

  • NAV version installed: 5.6.1
@johannaengland
Copy link
Contributor

Closed by #2603

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

Successfully merging a pull request may close this issue.

2 participants