Comment 1 for bug 1384055

Revision history for this message
Sushil Kumar (sushil-kumar2) wrote :

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