Fix bad endpoint resolution when multiple glance versions