Skip to content

Commit

Permalink
Cleaner output if a machine executes this command
Browse files Browse the repository at this point in the history
Without podman-machine running, ramalama ps will return:

Error: no container manager (Podman, Docker) found

Signed-off-by: Eric Curtin <[email protected]>
  • Loading branch information
ericcurtin committed Jan 21, 2025
1 parent e08af09 commit 15a85da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ramalama/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def containers_parser(subparsers):

def _list_containers(args):
conman = args.engine
if conman == "":
if conman == "" or conman == None:
raise ValueError("no container manager (Podman, Docker) found")

conman_args = [conman, "ps", "-a", "--filter", "label=RAMALAMA"]
Expand Down

0 comments on commit 15a85da

Please sign in to comment.