Call filter_images before save dependencies

save_dependency function needs the image status which is set
by filter_images.

Change-Id: I7aa097c94d59de9389d8a53babe63d8b991a6e23
Closes-bug: 1623291
This commit is contained in:
gong yong sheng 2016-09-14 10:46:04 +08:00
parent 16e79775ed
commit 2660bbee8f

View File

@ -944,6 +944,7 @@ def run_build():
if conf.save_dependency: if conf.save_dependency:
kolla.build_image_list() kolla.build_image_list()
kolla.find_parents() kolla.find_parents()
kolla.filter_images()
kolla.save_dependency(conf.save_dependency) kolla.save_dependency(conf.save_dependency)
LOG.info('Docker images dependency are saved in %s', LOG.info('Docker images dependency are saved in %s',
conf.save_dependency) conf.save_dependency)