sublist
A built-in CFEngine function in the data category that returns a list of strings. sublist is not called from the policy on your hosts.
- Signature
sublist(string, option, int)- Parameters
stringCFEngine variable identifier or inline JSON (.*)optionWhether to return elements from the head or from the tail of the list (head,tail)intMaximum number of elements to return (0,99999999999)
- Returns
slist- Category
- data