コード例 #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