Skip to content

Conversation

@isodude
Copy link
Contributor

@isodude isodude commented Nov 29, 2023

In PR #13958 (commit 8224644) _get_report was modified to do the call on the variable without changing the call later on.

Fixes: #14346

This commit fixes that and removes the call on the variable.

In PR netbox-community#13958 (commit 8224644) _get_report was modified to do the call on the variable without changing the call later on.

This commit fixes that and removes the call on the variable.

Signed-off-by: Josef Johansson <[email protected]>
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @isodude!

@jeremystretch jeremystretch merged commit c43c63a into netbox-community:develop Nov 29, 2023
# Retrieve and run the Report. This will create a new Job.
module, report_cls = self._get_report(pk)
report = report_cls()
report = report_cls
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value is no longer a report class, so maybe clearer to drop report_cls so it becomes:

 module, report = self._get_report(pk)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running reports via the API no longer works - object is not callable error

3 participants