Fix an AttributeError on rebuild

We changed requested_volumes to dict format in:
https://review.openstack.org/#/c/638076/ , but the 'rebuild' code
was not updated which causes this error.

Change-Id: I7dbae54753b5d680d05b9d4b741bad87bd02dd3a
Closes-Bug: #1824513
This commit is contained in:
Hongbin Lu 2019-04-12 23:00:50 +00:00
parent 9f98a16566
commit 0b4617e2b8
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ class Manager(periodic_task.PeriodicTasks):
@wrap_container_event(prefix='compute')
def _do_container_rebuild(self, context, container, run):
LOG.info("start to rebuild container: %s", container.uuid)
vol_info = self._get_vol_info(context, container)
vol_info = {container.uuid: self._get_vol_info(context, container)}
try:
network_info = self._get_network_info(context, container)
except Exception as e: