Skip to content

bug in chef zero search query involving multiple attributes and attribute presence check #81

@nicfarges

Description

@nicfarges

Hi,

there seem to be some inconsistency between chef server and chef zero on queries involving multiple nested attributes and attribute presence check...

on enterprise chef server:

  • knife search node "languages_ruby:*" -i -> return all nodes that have "ruby" attribute under "languages"

on chef zero (included in chef client 11.12.8, as test-kitchen provisioner):

  • knife search node "languages_ruby:*" -i -z -> return 0 node
  • however, this following query works on chef-zero: knife search node "languages_ruby_version:*" -i -z -> return 1 node

It seems does this bug apply only in node attributes (opposite to "leaf" attributes) in chef zero ? or maybe I miss something on query semantic ...

nicolas farges
GE Capital

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions