4e7772632a
We do a bunch of work everywhere else in shade to be friendly - but for some reason we only accept object or id for image and flavor. Fix it. In the unit tests, pass in a dict with an id value to avoid the need to mock the glance client, since that's not really what we're testing in any of those tests ... but add a test that does not do that to verify that the glance and nova clients are used to look at image/flavor lists. Change-Id: I1760a7464e43e19a475f6d277148a3c7e54ac468
10 lines
395 B
YAML
10 lines
395 B
YAML
---
|
|
features:
|
|
- The image and flavor parameters for create_server
|
|
now accept name in addition to id and dict. If given
|
|
as a name or id, shade will do a get_image or a
|
|
get_flavor to find the matching image or flavor.
|
|
If you have an id already and are not using any caching
|
|
and the extra lookup is annoying, passing the id in
|
|
as "dict(id='my-id')" will avoid the lookup.
|