Merge "Get correct server_id when udpate Volume Attachment"

This commit is contained in:
Jenkins 2014-12-17 02:13:30 +00:00 committed by Gerrit Code Review
commit e1c1d078af

View File

@ -852,7 +852,7 @@ class CinderVolumeAttachment(VolumeAttachment):
if self.DEVICE in prop_diff: if self.DEVICE in prop_diff:
device = prop_diff.get(self.DEVICE) device = prop_diff.get(self.DEVICE)
server_id = self.properties.get(self.INSTANCE_ID) server_id = self._stored_properties_data.get(self.INSTANCE_ID)
detach_task = VolumeDetachTask(self.stack, server_id, detach_task = VolumeDetachTask(self.stack, server_id,
self.resource_id) self.resource_id)
checkers.append(scheduler.TaskRunner(detach_task)) checkers.append(scheduler.TaskRunner(detach_task))