Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix if image has no created_by key
Currently, if you run Tern on a squashed Docker image, Tern fails to execute because there is no created_by key to assign as the instruction. This because the Docker squash feature removes the created_by key. This error would also be seen on non-squashed images that for whatever reason don't have a created_by key associated with a certain layer. This commit makes a change in the get_commands_from_history() function to set the instruction line as a blank string if no created_by key is available. Resolves #636 Signed-off-by: Rose Judge <[email protected]>
- Loading branch information