Remove test code in utils
This commit is contained in:
parent
ab160b3eaa
commit
1e43c91d85
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue