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

Openscap #39508

Merged
merged 2 commits into from Feb 22, 2017
Merged

Openscap #39508

merged 2 commits into from Feb 22, 2017

Conversation

dincamihai
Copy link
Contributor

What does this PR do?

Oscap module small improvements

What issues does this PR fix or reference?

Return oscap returncode and stderr in response.

New Behavior

  • salt-call --local openscap.xccdf "eval --profile Default /usr/share/openscap/scap-rhel6-xccdf.xml" --output=json
{
    "local": {
        "upload_dir": null,
        "returncode": 1,
        "success": false,
        "error": "Profile \"Default\" was not found.\n"
    }
}
  • salt-call --local openscap.xccdf "eval --profile Default /usr/share/openscap/scap-yast2sec-xccdf.xml" --output=json
{
    "local": {
        "upload_dir": "/tmp/tmpubfZqF",
        "returncode": 2,
        "success": true,
        "error": ""
    }
}

Tests written?

Yes

@cachedout cachedout merged commit 91e3319 into saltstack:2016.3 Feb 22, 2017
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