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

Add a refine-rule tailoring ability to autotailor #1877

Draft
wants to merge 2 commits into
base: maint-1.3
Choose a base branch
from

Conversation

matejak
Copy link
Contributor

@matejak matejak commented Jul 27, 2022

@matejak matejak added this to the 1.3.7 milestone Jul 27, 2022
change = ET.SubElement(profile, "xccdf-1.2:set-value")
change.set("idref", self._full_var_id(varname))
change.text = str(value)
self._add_rule_select_operations(container_element)(profile)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look right

[jcerny@thinkpad openscap{pr/1877}]$ utils/autotailor /usr/share/xml/scap/ssg/content/ssg-fedora-ds.xml standard
Traceback (most recent call last):
  File "/home/jcerny/work/git/openscap/utils/autotailor", line 205, in <module>
    t.to_xml(args.output)
  File "/home/jcerny/work/git/openscap/utils/autotailor", line 120, in to_xml
    self._add_rule_select_operations(container_element)(profile)
NameError: name 'container_element' is not defined

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we should start adding unit tests for the autotailor tool.

@jan-cerny jan-cerny modified the milestones: 1.3.7, 1.3.8 Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants