Merge "Make divisibility py3 compatible in DRBD driver"

This commit is contained in:
Zuul 2018-08-22 23:02:30 +00:00 committed by Gerrit Code Review
commit 40619359b3

View File

@ -278,10 +278,10 @@ class DrbdManageBaseDriver(driver.VolumeDriver):
# DRBDmanage works in kiB units; Cinder uses GiB.
def _vol_size_to_dm(self, size):
return size * units.Gi / units.Ki
return size * units.Gi // units.Ki
def _vol_size_to_cinder(self, size):
return size * units.Ki / units.Gi
return size * units.Ki // units.Gi
def is_clean_volume_name(self, name, prefix):
try: