delete function syntax help

12 views
Skip to first unread message

iamauser

unread,
Aug 23, 2012, 9:22:44 AM8/23/12
to puppet...@googlegroups.com

$compute_nodes = delete([range("100.0.0.1","100.0.0.10")],$get_my_ip)  doesn't delete $get_my_ip ... 

Is there something wrong in this syntax ? 

$get_my_ip is a user defined parser function to resolve the ip address from a hostname and it prints out the right address (100.0.0.1).

Thanks for any help.

iamauser

unread,
Aug 23, 2012, 9:24:36 AM8/23/12
to puppet...@googlegroups.com
Never mind. Just figured that out myself. 
No need for the square brackets [....].
Reply all
Reply to author
Forward
0 new messages