diff --git a/restic_volume_backup/utils.py b/restic_volume_backup/utils.py index f6d3406..14d5428 100644 --- a/restic_volume_backup/utils.py +++ b/restic_volume_backup/utils.py @@ -1,12 +1,11 @@ import docker -import pprint from restic_volume_backup.config import Config def list_containers(): + """Easily mockable container list""" client = docker.Client(base_url=Config.docker_base_url) all_containers = client.containers() - pprint.pprint(all_containers, indent=2) client.close() return all_containers