Skip to content

Commit

Permalink
bugfix: unable to get ruleset by name (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Fourgeaud <samuel.fourgeaud@onixnet.com>
  • Loading branch information
samforger and sam-fourgeaud-onix authored May 10, 2023
1 parent 96633c6 commit 0872f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dome9/dome9.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def get_ruleset(self, rulesetId=None, name=None):
Response object:
.. literalinclude:: schemas/ComplianceRuleset.json
"""
if id:
if rulesetId:
return self._get(route='CompliancePolicy/%s' % str(rulesetId))
elif name:
return filter(lambda x: x['name'] == name, self.list_rulesets())[0]
Expand Down

0 comments on commit 0872f74

Please sign in to comment.