Merge "Don't collect snapshots again when sync provider info"

This commit is contained in:
Jenkins 2017-10-08 16:14:08 +00:00 committed by Gerrit Code Review
commit 2d67e1f94c

View File

@ -357,13 +357,8 @@ class VolumeManager(manager.CleanableManager,
update['id'],
{'provider_id': update['provider_id']})
# NOTE(jdg): snapshots are slighty harder, because
# we do not have a host column and of course no get
# all by host, so we use a get_all and bounce our
# response off of it
if snapshot_updates:
cinder_snaps = self.db.snapshot_get_all(ctxt)
for snap in cinder_snaps:
for snap in snapshots:
# NOTE(jdg): For now we only update those that have no entry
if not snap.get('provider_id', None):
update = (