Exemplo n.º 1
0
 def properties(self):
     if not self._properties:
         if self.cache:
             self._properties = iocage_cache.datasets[self.resource_name]
         if not self._properties:
             # For cases where we are using this for datasets which are not under
             # ioc pool, we don't cache that data and it has to be retrieved in
             # this case
             self._properties = properties(self.resource_name,
                                           self.zfs_resource)
             iocage_cache.update_dataset_data(self.resource_name,
                                              self._properties)
     return self._properties
Exemplo n.º 2
0
 def properties(self):
     return properties(self.resource_name, self.zfs_resource)
Exemplo n.º 3
0
 def properties(self):
     if not self._properties or not self.cache:
         self._properties = properties(self.resource_name,
                                       self.zfs_resource)
     return self._properties