Recipe type search

To get a list of nodes with recipe postfix I’m using search(:node,
“recipe:postfix”), but in this case I actually only want nodes with
the postfix sub-recipe “delivery” (postfix::delivery). How do I
express that correctly in the search syntax? (just putting in
"postfix::delivery" returns an error) Thank you in advance.

-J

search(:node, 'recipes:"postfix::delivery"')

--Noah

On May 20, 2011, at 12:09 PM, Jason J. W. Williams wrote:

To get a list of nodes with recipe postfix I'm using search(:node,
"recipe:postfix"), but in this case I actually only want nodes with
the postfix sub-recipe "delivery" (postfix::delivery). How do I
express that correctly in the search syntax? (just putting in
"postfix::delivery" returns an error) Thank you in advance.

-J

Hmm... I've tried that but I get this from the WebUI

"Unable to find the node. (400 "Bad Request")"

-J

On Fri, May 20, 2011 at 1:20 PM, Noah Kantrowitz noah@coderanger.net wrote:

search(:node, 'recipes:"postfix::delivery"')

--Noah

On May 20, 2011, at 12:09 PM, Jason J. W. Williams wrote:

To get a list of nodes with recipe postfix I'm using search(:node,
"recipe:postfix"), but in this case I actually only want nodes with
the postfix sub-recipe "delivery" (postfix::delivery). How do I
express that correctly in the search syntax? (just putting in
"postfix::delivery" returns an error) Thank you in advance.

-J

On Friday, May 20, 2011 at 1:00 PM, Jason J. W. Williams wrote:

Hmm... I've tried that but I get this from the WebUI

"Unable to find the node. (400 "Bad Request")"

-J

On Fri, May 20, 2011 at 1:20 PM, Noah Kantrowitz <noah@coderanger.net (mailto:noah@coderanger.net)> wrote:

search(:node, 'recipes:"postfix::delivery"')

--Noah

On May 20, 2011, at 12:09 PM, Jason J. W. Williams wrote:

To get a list of nodes with recipe postfix I'm using search(:node,
"recipe:postfix"), but in this case I actually only want nodes with
the postfix sub-recipe "delivery" (postfix::delivery). How do I
express that correctly in the search syntax? (just putting in
"postfix::delivery" returns an error) Thank you in advance.

-J

I don' know about the WebUI, but this works for me in shef:

search(:node, 'recipes:postfix::delivery')

Single vs. double quotes is significant here since you want to include a backslash in the string instead of having ruby interpret it as an escape.

Dan