def nodes_with_recipe(recipename):
    """Configures a list of nodes that have the given recipe in their run list
    """
    nodes = [n['name'] for n in
             lib.get_nodes_with_recipe(recipename, env.chef_environment)]
    if not len(nodes):
        print("No nodes found with recipe '{0}'".format(recipename))
        sys.exit(0)
    return node(*nodes)
def nodes_with_recipe ( recipename ) : nodes = [ n [ 'name' ] for n in lib . get_nodes_with_recipe ( recipename , env . chef_environment ) ] if not len ( nodes ) : print ( "No nodes found with recipe '{0}'" . format ( recipename ) ) sys . exit ( 0 ) return node ( * nodes )
Configures a list of nodes that have the given recipe in their run list