moved image diff logging to their respective workspace #819
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#809 was flawed and didn't change the programming logic. I tried to think of any way for build_workspace_and_update_role() to return whether a change in the built image is detected. There isn't one, so the logging message needs to be printed at the workspace level:
The alternative would be to not test for changes to the image and always print the same thing, or modify build_workspace_and_update_role() abstract function and its implementations to return a BOOL of whether a change happened.
In docker workspace we add a test whether a cfg.image_repo is provided because local_docker does not define it/ use it (it is accepted as an argument because its a runopts for dockerworkspace)