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] navpgdump crashes with TypeError on Python 3 if exclusion options are provided #2058

Closed
lunkwill42 opened this issue Dec 16, 2019 · 0 comments
Assignees
Milestone

Comments

@lunkwill42
Copy link
Member

lunkwill42 commented Dec 16, 2019

Describe the bug

The navpgdump command does not work on Python 3 when invoked with any exclusion argument.

To Reproduce
Steps to reproduce the behavior:

  1. Run e.g. navpgdump --only-open-arp
  2. See error

Expected behavior

A proper dump should be produced, without errors.

Environment (please complete the following information):

  • NAV version installed: 5.0.2

Traceback

Traceback (most recent call last):
  File "/usr/bin/navpgdump", line 3, in <module>
    main()
  File "/opt/venvs/nav/lib/python3.5/site-packages/nav/pgdump.py", line 46, in main
    excluded = set(opts.exclude + opts.filters.keys())
TypeError: can only concatenate list (not "dict_keys") to list
@lunkwill42 lunkwill42 added the bug label Dec 16, 2019
@lunkwill42 lunkwill42 added this to the 5.0.3 milestone Dec 16, 2019
@lunkwill42 lunkwill42 self-assigned this Dec 16, 2019
@lunkwill42 lunkwill42 changed the title [BUG] navpgdump crashes with TypeError on Python 3 [BUG] navpgdump crashes with TypeError on Python 3 if exclusion arguments are provided Dec 16, 2019
@lunkwill42 lunkwill42 changed the title [BUG] navpgdump crashes with TypeError on Python 3 if exclusion arguments are provided [BUG] navpgdump crashes with TypeError on Python 3 if exclusion options are provided Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant