summaryrefslogtreecommitdiff
path: root/vmdb/tags.py
diff options
context:
space:
mode:
Diffstat (limited to 'vmdb/tags.py')
-rw-r--r--vmdb/tags.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/vmdb/tags.py b/vmdb/tags.py
index 337b36d..1dccfc5 100644
--- a/vmdb/tags.py
+++ b/vmdb/tags.py
@@ -45,6 +45,10 @@ class Tags:
item = self._get(tag)
return item['mount_point']
+ def is_cached(self, tag):
+ item = self._get(tag)
+ return item['cached']
+
def append(self, tag):
if tag in self._tags:
raise TagInUse(tag)
@@ -60,11 +64,12 @@ class Tags:
raise AlreadyHasDev(tag)
item['dev'] = dev
- def set_mount_point(self, tag, mount_point):
+ def set_mount_point(self, tag, mount_point, cached=False):
item = self._get(tag)
if item['mount_point'] is not None:
raise AlreadyMounted(tag)
item['mount_point'] = mount_point
+ item['cached'] = cached
def _get(self, tag):
item = self._tags.get(tag)