示例#1
0
文件: listing.py 项目: mnirgude/Ceph
 def pvs(self):
     """
     To avoid having to make an LVM API call for every single item being
     reported, the call gets set only once, using that stored call for
     subsequent calls
     """
     if getattr(self, '_pvs', None) is not None:
         return self._pvs
     self._pvs = api.get_api_pvs()
     return self._pvs
示例#2
0
文件: listing.py 项目: dmick/ceph
 def pvs(self):
     """
     To avoid having to make an LVM API call for every single item being
     reported, the call gets set only once, using that stored call for
     subsequent calls
     """
     if getattr(self, '_pvs', None) is not None:
         return self._pvs
     self._pvs = api.get_api_pvs()
     return self._pvs