pep8
This commit is contained in:
parent
2bbd329047
commit
fa1c982bf5
|
@ -1,8 +1,6 @@
|
|||
import logging
|
||||
import os
|
||||
import docker
|
||||
|
||||
from restic_compose_backup.config import Config
|
||||
from restic_compose_backup import utils
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -11,7 +9,6 @@ logger = logging.getLogger(__name__)
|
|||
def run(image: str = None, command: str = None, volumes: dict = None,
|
||||
environment: dict = None, labels: dict = None, source_container_id: str = None):
|
||||
logger.info("Starting backup container")
|
||||
config = Config()
|
||||
client = utils.docker_client()
|
||||
|
||||
container = client.containers.run(
|
||||
|
|
|
@ -93,7 +93,7 @@ def backup(config, containers):
|
|||
"A backup process container is already running. \n"
|
||||
f"Id: {containers.backup_process_container.id}\n"
|
||||
f"Name: {containers.backup_process_container.name}\n"
|
||||
)
|
||||
)
|
||||
)
|
||||
raise RuntimeError("Backup process already running")
|
||||
|
||||
|
|
Loading…
Reference in New Issue