3f30c49c6b
Blazar APIs support directly fetching a resource (whether host, floating ip, or lease) with its ID. However, the default logic for this includes a block that supports additionally looking up the resource by name (to allow looking up e.g., a lease by it's name.) This requires fetching the entire list of all resources and iterating over them until a match is found, which is very inefficient. Moreover, this branch would be taken even if the input was already a UUID. This commit changes that behavior so that if a UUID is provided, it is used to directly fetch the resource, which seems to be what the original intent was in the first place. Change-Id: I5b1ccf4abfe4aa9068bc011764cac4b3507ef697 |
||
---|---|---|
.. | ||
tests | ||
v1 | ||
__init__.py | ||
base.py | ||
client.py | ||
command.py | ||
exception.py | ||
i18n.py | ||
shell.py | ||
utils.py | ||
version.py |