Skip to content

Commit

Permalink
Merge pull request #371 from containers/help
Browse files Browse the repository at this point in the history
Change to None instead of ""
  • Loading branch information
rhatdan authored Oct 25, 2024
2 parents 44883f2 + ce05359 commit e4eefcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ramalama/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def container_manager():
try:
output = run_cmd(podman_machine_list).stdout.decode("utf-8").strip()
if "running" not in output:
return ""
return None

output = run_cmd(conman_args).stdout.decode("utf-8").strip()
if output == "krunkit" or output == "libkrun":
return "podman"
else:
return ""
return None

except subprocess.CalledProcessError:
pass
Expand All @@ -48,7 +48,7 @@ def container_manager():
if available("docker"):
return "docker"

return ""
return None


def perror(*args, **kwargs):
Expand Down

0 comments on commit e4eefcd

Please sign in to comment.