- From: Daniel Givens <
>
- To: "<
>" <
>
- Subject: [chef] Search for environment with hyphen
- Date: Wed, 5 Feb 2014 14:49:59 +0000
- Accept-language: en-US
I'm having some difficulties with a node search not returning any results
when matching on an environment with a hyphen in the name.
Example:
$ knife search node 'environment:production-ord'
0 items found
$ knife node show api-n01.ord.example.com
Node Name: api-n01.ord.example.com
Environment: production-ord
I've tried escaping the hyphen, which returns invalid search query. I've
tried surrounding the environment name with double quotes. The search works
fine for environments without a hyphen, such as "staging".
$ knife search node 'environment:staging'
22 items found
…
I'm using knife from Chef 11.8.2 and the Chef server is 11.0.10.
Any help would be appreciated.
--
Daniel
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
- [chef] Search for environment with hyphen, Daniel Givens, 02/05/2014
Archive powered by MHonArc 2.6.16.