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

Fix stig overlay #11114

Merged
merged 2 commits into from
Sep 15, 2023
Merged

Fix stig overlay #11114

merged 2 commits into from
Sep 15, 2023

Conversation

Mab879
Copy link
Member

@Mab879 Mab879 commented Sep 13, 2023

Description:

Fix utils/create-stig-overlay.py when not in quiet mode.

Rationale:

Make the script work when not in quiet mode.

Review Hints:

Example usage

./utils/create-stig-overlay.py --disa-xccdf shared/references/disa-stig-rhel8-v1r11-xccdf-manual.xml -o build/overlay.xml

The raw_input method was removed in Python 3.0.
This code should also work on Python 2.7.
The default value given before was undefined an thus causing an issue
when the script was ran without it.
@Mab879 Mab879 added the Infrastructure Our content build system label Sep 13, 2023
@Mab879 Mab879 added this to the 0.1.70 milestone Sep 13, 2023
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@codeclimate
Copy link

codeclimate bot commented Sep 13, 2023

Code Climate has analyzed commit 0ec39d9 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 53.8% (0.0% change).

View more on Code Climate.

@jan-cerny jan-cerny self-assigned this Sep 15, 2023
Copy link
Collaborator

@jan-cerny jan-cerny left a comment

Choose a reason for hiding this comment

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

I confirm it fixed the traceback to me and it generated an XML document as an output.

@jan-cerny jan-cerny merged commit 47c2402 into ComplianceAsCode:master Sep 15, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants