containers / udica

This repository contains a tool for generating SELinux security profiles for containers
GNU General Public License v3.0
488 stars 47 forks source link

Catch FileNotFoundError when inspecting containers #12

Closed janzarsky closed 5 years ago

janzarsky commented 5 years ago

Previously, when using the '-i' option, calling podman or docker could result in FileNotFoundError which was not caught. Fix this by catching FileNotFoundError. Also do not use shutil.which, simply call docker or podman and check return code.

wrabcak commented 5 years ago

LGTM.

Thanks, Lukas.