(region, bless_config)
return regions
Get an ordered list of regions in which to run bless_config
    Args:
        region (str): the current AWS region code (e.g., 'us-east-1') where blessclient
            has attempted to run and failed.
        bless_config (dict): config from BlessConfig
    Returns:
        List of regions
Get an ordered list of regions in which to run bless_config
    Args:
        region (str): the current AWS region code (e.g., 'us-east-1') where blessclient
            has attempted to run and failed.
        bless_config (dict): config from BlessConfig
    Returns:
        List of regions
Get an ordered list of regions in which to run bless_config Args : region ( str ) : the current AWS region code ( e . g . us - east - 1 ) where blessclient has attempted to run and failed . bless_config ( dict ) : config from BlessConfig Returns : List of regions
def get_regions(region, bless_config):
    """ Get an ordered list of regions in which to run bless_config
    Args:
        region (str): the current AWS region code (e.g., 'us-east-1') where blessclient
            has attempted to run and failed.
        bless_config (dict): config from BlessConfig
    Returns:
        List of regions
    """
    regions = []
    aws_regions = tuple(sorted(bless_config.get('REGION_ALIAS').values()))
    try:
        ndx = aws_regions.index(region)
    except ValueError:
        ndx = 0
    while len(regions) < len(aws_regions):
        regions.append(aws_regions[ndx])
        ndx = (ndx + 1) % len(aws_regions)
    return regions
def get_regions ( region , bless_config ) : regions = [ ] aws_regions = tuple ( sorted ( bless_config . get ( 'REGION_ALIAS' ) . values ( ) ) ) try : ndx = aws_regions . index ( region ) except ValueError : ndx = 0 while len ( regions ) < len ( aws_regions ) : regions . append ( aws_regions [ ndx ] ) ndx = ( ndx + 1 ) % len ( aws_regions ) return regions