Conversation
|
Is there a reason this pull request is still open? I am having the exact same issue as #18. Currently, I am having to use my own modified version of chef-api. @normanjoyner any update on this? |
|
i wana get only the ip address of node " server 1 " im sending a request like this Code : chef.partialSearch("node", "name:server1",{"ip":"ipaddress"} ,function(err, res){ if (err){console.log(error);} else{console.log(res);} }); => Response : received status code 400 invalid value 'ipaddress' for no_key function in code source : partialSearch: function(index, qs, data, fn) { ... } Can you please give a valid syntax with example . |
There was a problem hiding this comment.
Correct Syntax For Search Methods
Simple Search : Exemple
chef.search("node", {q: "name:server1" }, function(err, res){
if (err){console.log(error);}
else{console.log(res);}
});
Partial Search : Exemple
chef.partialSearch("node", {q: "role:web"}, { name: ['name'] , 'ipaddress': ['ipaddress'] }, function(err, res){
if (err){console.log(error);}
else{console.log(res);}
});
Referencing issue #18