Remove test code in utils
This commit is contained in:
parent
ab160b3eaa
commit
1e43c91d85
|
@ -1,12 +1,11 @@
|
||||||
import docker
|
import docker
|
||||||
import pprint
|
|
||||||
|
|
||||||
from restic_volume_backup.config import Config
|
from restic_volume_backup.config import Config
|
||||||
|
|
||||||
|
|
||||||
def list_containers():
|
def list_containers():
|
||||||
|
"""Easily mockable container list"""
|
||||||
client = docker.Client(base_url=Config.docker_base_url)
|
client = docker.Client(base_url=Config.docker_base_url)
|
||||||
all_containers = client.containers()
|
all_containers = client.containers()
|
||||||
pprint.pprint(all_containers, indent=2)
|
|
||||||
client.close()
|
client.close()
|
||||||
return all_containers
|
return all_containers
|
||||||
|
|
Loading…
Reference in New Issue