Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.5.1, 0.5.2
-
Fix Version/s: 0.5.4
-
Component/s: Chef Client
-
Labels:None
Description
Search in the API currently takes two arguments and a block. It should take an optional third argument, which is a list of attributes to return.
Activity
- All
- Comments
- History
- Activity
- Transitions
- Source
This is fixed, and pushed. You can now do:
results = search(:node, '*', [ 'ipaddress', 'hostname' ])
And results will be an array of hashes.
(Or use it in a block, like normal, etc.)