Don't fail if we cant get the os, we can still do some stuff

main
Micke Nordin 3 years ago
parent edea918f77
commit fe26cac3e9
Signed by: micke
GPG Key ID: 0DA0A7A5708FE257

@ -29,6 +29,8 @@ def get_os_for_image(image: str, hash: dict) -> str:
if "PRETTY_NAME" in hash:
if hash["PRETTY_NAME"] == "Distroless":
return "distroless"
if not "ID" in hash:
return "unknown"
return hash["ID"]

Loading…
Cancel
Save