pep8 and spelling errors

This commit is contained in:
Einar Forselv
2019-11-12 12:39:49 +01:00
parent 1fbdb89141
commit 4b9748a0c8
6 changed files with 23 additions and 27 deletions

View File

@@ -1,13 +1,11 @@
import os
import sys
import time
import docker
from restic_volume_backup.config import Config
def run(image: str = None, command: str = None, volumes: dict = None,
enviroment: dict = None, labels: dict = None):
environment: dict = None, labels: dict = None):
config = Config()
client = docker.DockerClient(base_url=config.docker_base_url)
@@ -17,7 +15,7 @@ def run(image: str = None, command: str = None, volumes: dict = None,
labels=labels,
# auto_remove=True,
detach=True,
environment=enviroment,
environment=environment,
volumes=volumes,
working_dir=os.getcwd(),
tty=True,