Atomic/scan.py: Fix scan error message (BZ #1508453)
Description
BZ #1508453 correctly points out that the error message points to the wrong file when telling the user it cannot find the scanner image or arguments.
Signed-off-by: baude [email protected]
Related Bugzillas
- 1508453
Related Issue Numbers
Pull Request Checklist:
If your Pull request contains new features or functions, tests are required. If the PR is a bug fix and no tests exist, please consider adding some to prevent regressions.
- [ ] Unittests
- [ ] Integration Tests
LGTM
change LGTM, tests aren't happy though.
@baude Can we also put the actual path to the correct configuration file into that error message?
bot, retest this please
@matusmarhefka that would be a bit harder ... but if you feel strongly, i could attempt to do that.
@baude I leave it up to you. But if it would require too many code changes, we can go with the current fix.
is this preferred?
# sudo ./atomic scan registry.access.redhat.com/rhel7/openscap
The scanner configuration for 'openscap' in '/etc/atomic.d/openscap' is missing its image name or scanner arguments
#
@baude Yes, that looks good.
bot, retest this please
bot, retest this please