Skip to content

Commit

Permalink
also get OpenSCAP task ID
Browse files Browse the repository at this point in the history
see also issue #43
  • Loading branch information
stdevel committed May 2, 2024
1 parent 7833438 commit b7b2c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/openscap_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ def _schedule_openscap_run(module, api_instance):
"""
try:
# module.fail_json(msg="About to schedule OpenSCAP run")
api_instance.schedule_openscap_run(
action_id = api_instance.schedule_openscap_run(
get_host_id(
module.params.get('name'),
api_instance
),
module.params.get('document'),
module.params.get('arguments')
)
module.exit_json(changed=True)
module.exit_json(changed=True, action_id=action_id)
except SSLCertVerificationError:
module.fail_json(msg="Failed to verify SSL certificate")
except EmptySetException as err:
Expand Down

0 comments on commit b7b2c10

Please sign in to comment.