Skip to content

Commit

Permalink
Fixes pylint undefined error (#81)
Browse files Browse the repository at this point in the history
* Fixes pylint undefined error

* changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Ruchip16 and pre-commit-ci[bot] authored Aug 26, 2024
1 parent f36b365 commit cdb7831
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit cdb7831

Please sign in to comment.