Some changes (in what are admittedly private methods) from oslo.config
5.x to 6.x broke our hacky bits. These bits have now been adjusted to
be compatible with a wider range of oslo.config versions.
This delicate code must be maintained in order to support grabbing
config values from [keystone_authtoken], a behavior which is usually
discouraged.
Change-Id: I9aaa4a3e9052a61269bb7ffcc642383ad6c5a0d8
Story: 2001835
Task: 12598