Skip to content

Commit

Permalink
fix: corrected condition for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
radohanculak authored and jdobes committed Jul 31, 2023
1 parent 73270b7 commit b9934e4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion manager/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,20 @@ def cyndi_join(query):

def is_cacheable_request(args):
"""Checks if request needs cyndi join"""
return not g.group_ids and any(key in args and args[key] is not None for key in ["tags", "sap_system", "sap_sids", "rhel_version", "ansible", "mssql"])
return not g.group_ids and any(
key in args and args[key] is not None
for key in [
"tags",
"sap_system",
"sap_sids",
"rhel_version",
"ansible",
"mssql",
"group_name",
"group_id",
"ungrouped_hosts",
]
)


def wait_on_cyndi():
Expand Down

0 comments on commit b9934e4

Please sign in to comment.