but when it searches for name it does a search on http://<trove_server>:8779/v1.0/<tenant_id>/instances and then finds the matching name
Now the difference arises because of the different result sets in both outputs
Like when it fetches the instances list it fetches lesser information which is then presented to printing formatter resulting in different outputs for different types on inputs
the client finds the information about an instance from the method findall
https:/ /github. com/openstack/ python- troveclient/ blob/master/ troveclient/ base.py# L221-L238
This works when used with instance id as it hits the server with the url
http://<trove_ server> :8779/v1. 0/<tenant_ id>/instances/ <instance_ id>
but when it searches for name it does a search on http://<trove_ server> :8779/v1. 0/<tenant_ id>/instances and then finds the matching name
Now the difference arises because of the different result sets in both outputs
Like when it fetches the instances list it fetches lesser information which is then presented to printing formatter resulting in different outputs for different types on inputs