Zun

Remove redundant variable definition

Bug #1753867 reported by weikeyou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
In Progress
Undecided
weikeyou

Bug Description

The variable "id_to_container_map" is Redefined in zun/container/docker/driver.py .
In the function "list", the variable get value from the following code:
 "id_to_container_map = {c['Id']: c for c in docker.list_containers()}". "id_to_container_map" is always a dict ,even if docker.list_containers() is none.

weikeyou (weikeyou)
Changed in zun:
assignee: nobody → weikeyou (weikeyou)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun (master)

Fix proposed to branch: master
Review: https://review.openstack.org/550302

Changed in zun:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on zun (master)

Change abandoned by weikeyou (<email address hidden>) on branch: master
Review: https://review.openstack.org/550302

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.