Jira (PDB-341) Select-resources subquery strange behavior

2014-01-23 Thread Kenneth Barber (JIRA)
Title: Message Title










 

 Kenneth Barber updated an issue


















 PuppetDB /  PDB-341



  Select-resources subquery strange behavior  










Change By:

 Kenneth Barber




Affects Version/s:

 1.5.0












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PDB-341) Select-resources subquery strange behavior

2014-01-22 Thread Akos Hencz (JIRA)
Title: Message Title










 

 Akos Hencz created an issue


















 PuppetDB /  PDB-341



  Select-resources subquery strange behavior  










Issue Type:

  Bug




Affects Versions:


 1.6.0-rc2




Assignee:


 Unassigned




Created:


 22/Jan/14 1:49 AM




Priority:

  Normal




Reporter:

 Akos Hencz










Hello,
We wanted to created a query, which would check the hostgroup fact of machines that apply a certain type of resource declared in a certain manifest file. We wanted to use the 'select-resources' subquery as follows:



curl -G -H Accept: application/json localhost:8080/v3/facts --data-urlencode 'query=[and,[=,name,hostgroup], [in,certname,[extract,certname, [select-resources, [and,[=, type, Class],[=,file,/path/to/mymanifest.pp]]'



This returns an error: file is not a queryable object for resources. According to the documentation, 'select-resources' takes any arguments valid for /v3/resources endpoint.
If we try the arguments of 'select-resources' directly to the resources endpoint, we get valid results:



curl -G -H Accept: application/json localhost:8080/v3/resources --data-urlencode 'query=[and,[=, type, Class],[=,file,/path/to/mymanifest.pp]]'



lists 

Jira (PDB-341) Select-resources subquery strange behavior

2014-01-22 Thread Deepak Giridharagopal (JIRA)
Title: Message Title










 

 Deepak Giridharagopal updated an issue


















 PuppetDB /  PDB-341



  Select-resources subquery strange behavior  










Change By:

 Deepak Giridharagopal




Sprint:

 20140122to20140129












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PDB-341) Select-resources subquery strange behavior

2014-01-22 Thread Deepak Giridharagopal (JIRA)
Title: Message Title










 

 Deepak Giridharagopal updated an issue


















 PuppetDB /  PDB-341



  Select-resources subquery strange behavior  










Change By:

 Deepak Giridharagopal




Story Points:

 3












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PDB-341) Select-resources subquery strange behavior

2014-01-22 Thread Kenneth Barber (JIRA)
Title: Message Title










 

 Kenneth Barber assigned an issue to Kenneth Barber


















 PuppetDB /  PDB-341



  Select-resources subquery strange behavior  










Change By:

 Kenneth Barber




Assignee:

 KennethBarber












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.