¡@

Home 

OpenStack Study: location_order.py

OpenStack Index

**** CubicPower OpenStack Study ****

def get_strategy_name():

    """Return strategy module name."""

    return 'location_order'

**** CubicPower OpenStack Study ****

def init():

    """Initialize strategy module."""

    pass

**** CubicPower OpenStack Study ****

def get_ordered_locations(locations, **kwargs):

    """

    Order image location list.

    :param locations: The original image location list.

    :return: The image location list with original natural order.

    """

    return locations