Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.
This repository was archived by the owner on May 9, 2020. It is now read-only.

Client Search not returning properly #10

@behemphi

Description

@behemphi

I am using the following pattern for identifying nodes and it works a charm:

result_set = chef.Search('node', q="name:test*")
for result in result_set:
    node = chef.Node(result["name"])
    print node

Executing this works as expected. I get an object for each result.

I then attempt to apply this to clients:

result_set = chef.Search('client', q="name:test*")
for result in result_set:
    client = chef.Client(result["name"])
    print client

no result is shown on the screen, however I can verify there are three clients that should be present.

I will also mention here that there is nothing in the documentation about the Client object, I sort of guessed it would be there then read the code.

I am not handy enough with Python to find the bug, though I have tried.

Thanks
Boyd Hemphill

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions