Пример #1
0
 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
 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