mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 06:35:24 +00:00
Remove old mount string method
This commit is contained in:
@@ -172,14 +172,6 @@ class Mount:
|
||||
"""Destionatin path for the volume mount in the container"""
|
||||
return self._data.get('Destination')
|
||||
|
||||
def mount_string(self) -> str:
|
||||
if self.type == VOLUME_TYPE_VOLUME:
|
||||
return "- {}:{}:ro".format(self.name.split('_')[-1], self.destination)
|
||||
elif self.type == VOLUME_TYPE_BIND:
|
||||
return "- {}:{}:ro".format(self.source, self.destination)
|
||||
else:
|
||||
raise ValueError("Uknown volume type: {}".format(self.type))
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return str(self)
|
||||
|
||||
|
Reference in New Issue
Block a user