def list_nodes_select(call=None):
    '''
    Return a list of the VMs that are on the provider, with select fields
    '''
    if call == 'action':
        raise SaltCloudSystemExit(
            'The list_nodes_select function must be called '
            'with -f or --function.'
        )

    selection = __opts__.get('query.selection')

    if not selection:
        raise SaltCloudSystemExit(
            'query.selection not found in /etc/salt/cloud'
        )

    # TODO: somewhat doubt the implementation of cloud.list_nodes_select
    return salt.utils.cloud.list_nodes_select(
        list_nodes_full(), selection, call,
    )
def list_nodes_select ( call = None ) : if call == 'action' : raise SaltCloudSystemExit ( 'The list_nodes_select function must be called ' 'with -f or --function.' ) selection = __opts__ . get ( 'query.selection' ) if not selection : raise SaltCloudSystemExit ( 'query.selection not found in /etc/salt/cloud' ) return salt . utils . cloud . list_nodes_select ( list_nodes_full ( ) , selection , call , )
Return a list of the VMs that are on the provider, with select fields