예제 #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