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

product will always be rhel8 // replace prodtype logic #48

Closed
sluetze opened this issue Jan 30, 2024 · 0 comments · Fixed by #49
Closed

product will always be rhel8 // replace prodtype logic #48

sluetze opened this issue Jan 30, 2024 · 0 comments · Fixed by #49

Comments

@sluetze
Copy link

sluetze commented Jan 30, 2024

with ComplianceAsCode/content#11378 prodtype got removed.

so this

if not prodtype_line:
return None

will always return None and

def add_changed_rule(self, rule_name, product_name=None, msg=""):
self.add_rule_log(rule_name, msg)
if not product_name:
product_name = self.get_rule_products(rule_name)
if product_name:
product_name = product_name[0]
logger.debug("Rule %s is part of %s datastream.", rule_name, product_name)
else:
product_name = "rhel8"
logger.debug("Rule %s is not part of any datastream. "
"Added default rhel8 value", rule_name)
self.changed_rules[product_name].add(rule_name)

will always set rhel8 as product

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant