From 26ea7a2a001f36f10efd06bfb7c86d6569663c3e Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Wed, 4 Dec 2019 19:34:50 +0100 Subject: [PATCH] Shortcut property for getting project name --- restic_compose_backup/containers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/restic_compose_backup/containers.py b/restic_compose_backup/containers.py index 78032f8..aeeea7b 100644 --- a/restic_compose_backup/containers.py +++ b/restic_compose_backup/containers.py @@ -319,6 +319,11 @@ class RunningContainers: if container.id != self.this_container.id: self.containers.append(container) + @property + def project_name(self) -> str: + """str: Name of the compose project""" + return self.this_container.project_name + @property def backup_process_running(self) -> bool: """Is the backup process container running?"""