Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Atomic/scan.py: Fix scan error message (BZ #1508453) #1123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

baude
Copy link
Member

@baude baude commented Nov 1, 2017

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

@rhatdan
Copy link
Member

rhatdan commented Nov 1, 2017

LGTM

@TomSweeneyRedHat
Copy link

change LGTM, tests aren't happy though.

@matusmarhefka
Copy link

matusmarhefka commented Nov 1, 2017

@baude Can we also put the actual path to the correct configuration file into that error message?

@baude
Copy link
Member Author

baude commented Nov 1, 2017

bot, retest this please

@baude
Copy link
Member Author

baude commented Nov 1, 2017

@matusmarhefka that would be a bit harder ... but if you feel strongly, i could attempt to do that.

@matusmarhefka
Copy link

@baude I leave it up to you. But if it would require too many code changes, we can go with the current fix.

@baude
Copy link
Member Author

baude commented Nov 1, 2017

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
#

@matusmarhefka
Copy link

@baude Yes, that looks good.

@baude baude force-pushed the scan_error branch 2 times, most recently from f8c7399 to c4b1faa Compare November 1, 2017 16:07
@baude
Copy link
Member Author

baude commented Nov 16, 2017

bot, retest this please

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]>
@ashcrow
Copy link
Contributor

ashcrow commented Feb 12, 2018

bot, retest this please

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants