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

Fixes pylint undefined error #81

Merged
merged 3 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/pylint_fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- Fixes pylint used-before-assignment error.
2 changes: 2 additions & 0 deletions plugins/action/qradar_analytics_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def search_for_resource(self, qradar_request, search_for_resource=None):
:rtype: A dict
:returns: dict with module prams transformed having API expected params
"""
api_obj_url = None

if search_for_resource.get("id"):
api_obj_url = self.api_object + "/{0}".format(
search_for_resource["id"],
Expand Down
Loading