The ini file looks like this:
The zanata init command will provide a list of servers to choose from on zanata-cli init
The problem here is that I know my second profile 'djansen' is the one I aim to use, but selecting '2' still succeeds despite the invalid key - as it is actually using the admin user from the 'localhost' prefix.
This is due to the inaccurately named UserConfigHandler::verifyUserConfig function only checking that the zanata.ini exists and isn't empty. The applyUserConfig function then just accepts the first matching url.
It should be Mapping the configs, or passing the appropriate prefix to the applyUserConfig function to ensure the correct one is selected.