From ac33ee39dde73a4e3d7bf5976619726a0106d3c9 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Tue, 16 Apr 2019 18:22:03 +0200 Subject: [PATCH] Create config in list_containers --- restic_volume_backup/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restic_volume_backup/utils.py b/restic_volume_backup/utils.py index 14d5428..a709733 100644 --- a/restic_volume_backup/utils.py +++ b/restic_volume_backup/utils.py @@ -5,7 +5,8 @@ from restic_volume_backup.config import Config def list_containers(): """Easily mockable container list""" - client = docker.Client(base_url=Config.docker_base_url) + config = Config() + client = docker.Client(base_url=config.docker_base_url) all_containers = client.containers() client.close() return all_containers