This remaining use of the flavor query routine from the cellsv1 code
still looks at the main database. This patch converts it to use the
object which looks in the right place.
Conflicts:
nova/tests/unit/cells/test_cells_state_manager.py
NOTE(mriedem): The conflict is due to not having
c9de74ac2a in newton.
Closes-Bug: #1663729
Change-Id: I418988ae1d72d541ace867a22b2c9267164bf61b
(cherry picked from commit 6e5b1d289b)
(cherry picked from commit 681e377618)