Fix return value of _clone_image_volume

Callers are looking for an object or None, this should not
return false.

pylint error:
E:1248,30: Instance of 'bool' has no 'id' member (no-member)

Change-Id: I6f2cefb3e62a04b55086f0429194b1b650ee69dc
This commit is contained in:
Eric Harney 2016-03-21 10:19:30 -04:00
parent aa7e0f1c8a
commit 2a0712476a
1 changed files with 2 additions and 2 deletions

View File

@ -1205,7 +1205,7 @@ class VolumeManager(manager.SchedulerDependentManager):
'image_id': image_meta['id'],
'except': ex})
QUOTAS.rollback(ctx, reservations)
return False
return
QUOTAS.commit(ctx, reservations,
project_id=new_vol_values['project_id'])
@ -1232,7 +1232,7 @@ class VolumeManager(manager.SchedulerDependentManager):
except exception.CinderException:
LOG.exception(_LE('Could not delete the image volume %(id)s.'),
{'id': volume.id})
return False
return
def _clone_image_volume_and_add_location(self, ctx, volume, image_service,
image_meta):