glance.common.location_strategy.
choose_best_location
(locations, **kwargs)[source]¶Choose best location from image location list by configured strategy.
locations – The original image location list.
kwargs – Strategy-specific arguments for under layer strategy module.
The best location from image location list.
glance.common.location_strategy.
get_ordered_locations
(locations, **kwargs)[source]¶Order image location list by configured strategy.
locations – The original image location list.
kwargs – Strategy-specific arguments for under layer strategy module.
The image location list with strategy-specific order.
glance.common.location_strategy.
verify_location_strategy
(conf=None, strategies={'location_order': <module 'glance.common.location_strategy.location_order' from '/builddir/build/BUILD/glance-20.0.0.0rc2/glance/common/location_strategy/location_order.py'>, 'store_type': <module 'glance.common.location_strategy.store_type' from '/builddir/build/BUILD/glance-20.0.0.0rc2/glance/common/location_strategy/store_type.py'>})[source]¶Validate user configured ‘location_strategy’ option value.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.