Don't do glance v2 calls when config is set to v1

Fixes bug 1252549

Change-Id: I6d9509bfecd2f73040a0ad27aff8fc5f6fd0a899
(cherry picked from commit a5424f700e6cce409763019906acfe293a75ed1a)
Merge "Don't do glance v2 calls when config is set to v1" into stable/havana