Go to file
Jason Anderson 3f30c49c6b Don't fetch entire list when looking up by ID
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
2020-01-30 16:59:44 +01:00
2019-12-06 04:15:12 +00:00
2019-04-19 19:45:16 +00:00
2019-12-06 04:15:12 +00:00
2014-02-04 23:13:37 +04:00
2014-02-04 23:13:37 +04:00
2017-03-28 21:36:55 +00:00

Team and repository tags

image

Blazar client

This is a client for the OpenStack Blazar API. It provides a Python API (the blazarclient module) and a command-line script (blazar).

Other Resources

Description
Client for OpenStack Blazar
Readme 2.6 MiB
Languages
Python 100%