Remove old mount string method

This commit is contained in:
Einar Forselv 2019-04-19 00:18:40 +02:00
parent 3dc3ce5eb9
commit 312da0f24e
1 changed files with 0 additions and 8 deletions

View File

@ -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)