Skip to content
Open
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
6 changes: 3 additions & 3 deletions ctf/DiffStruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_rule_products(self, rule):
for product in self.find_control_products(control):
products.append(product)

products = sorted(products, key=lambda k: (k!="rhel8", k!="rhel7", k!="ocp4", k))
products = sorted(products, key=lambda k: (k!="rhel9", k!="rhel8", k!="rhel7", k!="ocp4", k))
return products

def add_changed_rule(self, rule_name, product_name=None, msg=""):
Expand All @@ -141,9 +141,9 @@ def add_changed_rule(self, rule_name, product_name=None, msg=""):
product_name = product_name[0]
logger.debug("Rule %s is part of %s datastream.", rule_name, product_name)
else:
product_name = "rhel8"
product_name = "rhel9"
logger.debug("Rule %s is not part of any datastream. "
"Added default rhel8 value", rule_name)
"Added default rhel9 value", rule_name)
self.changed_rules[product_name].add(rule_name)

def add_changed_profile(self, profile_name, product_name, msg=""):
Expand Down
Loading