Merge "Drop extra loop which modifies Cinder volume status"

This commit is contained in:
Zuul 2018-02-19 21:51:07 +00:00 committed by Gerrit Code Review
commit 11f83d86d7
1 changed files with 0 additions and 12 deletions

View File

@ -1387,12 +1387,6 @@ class CinderFixture(fixtures.Fixture):
'size': 1
}
# update the status based on existing attachments
has_attachment = any(
[volume['id'] in attachments
for attachments in self.attachments.values()])
volume['status'] = 'attached' if has_attachment else 'detached'
# Check for our special image-backed volume.
if volume_id == self.IMAGE_BACKED_VOL:
# Make it a bootable volume.
@ -1567,12 +1561,6 @@ class CinderFixtureNewAttachFlow(fixtures.Fixture):
'size': 1
}
# update the status based on existing attachments
has_attachment = any(
[volume['id'] in attachments
for attachments in self.attachments.values()])
volume['status'] = 'attached' if has_attachment else 'detached'
# Check for our special image-backed volume.
if volume_id == self.IMAGE_BACKED_VOL:
# Make it a bootable volume.