Shortcut property for getting project name

This commit is contained in:
Einar Forselv 2019-12-04 19:34:50 +01:00
parent 85e9efb769
commit 26ea7a2a00
1 changed files with 5 additions and 0 deletions

View File

@ -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?"""