forked from vitalif/vitastor
Merge pull request #30 from moly7x/moly7x-fix-No-weighed-backend-found
Fix No weighed backend foundnbd-vmsplice
commit
0544a16f95
|
@ -276,6 +276,15 @@ class VitastorDriver(driver.CloneableImageVD,
|
|||
|
||||
self._stats = stats
|
||||
|
||||
def get_volume_stats(self, refresh=False):
|
||||
"""Get volume stats.
|
||||
If 'refresh' is True, run update the stats first.
|
||||
"""
|
||||
if not self._stats or refresh:
|
||||
self._update_volume_stats()
|
||||
|
||||
return self._stats
|
||||
|
||||
def _next_id(self, resp):
|
||||
if len(resp['kvs']) == 0:
|
||||
return (1, 0)
|
||||
|
|
Loading…
Reference in New Issue