From 312da0f24e5382ba44601b6a9d6cc6a1c6302d81 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Fri, 19 Apr 2019 00:18:40 +0200 Subject: [PATCH] Remove old mount string method --- restic_volume_backup/containers.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/restic_volume_backup/containers.py b/restic_volume_backup/containers.py index e53ed1e..13319ad 100644 --- a/restic_volume_backup/containers.py +++ b/restic_volume_backup/containers.py @@ -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)