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

listing exectionrequests returns error #23

Closed
mwallschlaeger opened this issue Aug 23, 2023 · 0 comments
Closed

listing exectionrequests returns error #23

mwallschlaeger opened this issue Aug 23, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mwallschlaeger
Copy link
Contributor

when running: ./geonodectl executionrequest list the following error occures.

Traceback (most recent call last):
  File "/home/mwall/Sourcecode/geonodectl/./geonodectl", line 517, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/mwall/Sourcecode/geonodectl/./geonodectl", line 513, in main
    g_obj_func(**args.__dict__)
  File "/home/mwall/Sourcecode/geonodectl/src/executionrequest.py", line 49, in cmd_list
    GeonodeObjectHandler.print_list_on_cmd(obj)
  File "/home/mwall/Sourcecode/geonodectl/src/geonodeobject.py", line 115, in print_list_on_cmd
    values = [
             ^
  File "/home/mwall/Sourcecode/geonodectl/src/geonodeobject.py", line 116, in <listcomp>
    generate_line(i, obj, cls.LIST_CMDOUT_HEADER) for i in range(len(obj))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mwall/Sourcecode/geonodectl/src/geonodeobject.py", line 113, in generate_line
    return [cmdoutkey.get_key(obj[i]) for cmdoutkey in headers]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mwall/Sourcecode/geonodectl/src/geonodeobject.py", line 113, in <listcomp>
    return [cmdoutkey.get_key(obj[i]) for cmdoutkey in headers]
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mwall/Sourcecode/geonodectl/src/geonodetypes.py", line 46, in get_key
    return ds[self.key]
           ~~^^^^^^^^^^
KeyError: 'pk'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant