Closed yuumasato closed 6 years ago
Hello @yuumasato! Thanks for updating the PR.
container/remediate.py
, following are the PEP8 issues :Line 79:47: E225 missing whitespace around operator
I am totally in favor of merging this PR, but I suggest that the reason for this is somehow documented in the code, so people don't have tendency to "correct" it back. BTW it is not only about missing subscriptions, but offline machines would also see a failiure here (even if remediation didn't want to install any package).
This absolutely needs a comment. If I saw this I would probably assume that this is some testing leftover.
I'll have added a comment.
I also made errors from fix.sh
not completely ignored.
As we don't make sure that return code of a remediation script reflects remediation result, we can probably safely ignore it for the time being.
Agreed, there we some other implementation related problems also. I've dropped the commit.
I liked some of the style improvement you did in that commit, but I will merge this one and you can open a new one whenever you like. Thanks for your contribution!
If host machine is not subscribed, command "yum clean all" executed after remediation script will return error, and cause remediation of image to be aborted.
Below is error from container remediation.
This patch prevents any error in "yum clean all" from aborting whole remediation. Only thing that should happen if host machine is not subscribed, is that packages are not installed in remediated container image.