Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HostRecord.search() example #31

Open
sherzodscwx opened this issue Jan 25, 2021 · 1 comment
Open

HostRecord.search() example #31

sherzodscwx opened this issue Jan 25, 2021 · 1 comment

Comments

@sherzodscwx
Copy link

Hi!

Struggling to understand the args and kwargs for HostRecord.search(). Trying to emulate the following call

r = conn.get_object('record:host', {'name~': host})

but cant seem to pick the right kwargs. This one worked

kw = {'name': host}
r = objects.HostRecord.search(conn, **kw)

but

kw = {'name~': host}
r = objects.HostRecord.search(conn, **kw)

didnt 😞.

Does anybody have a working example for ~ operator?

TIA!

@seefor
Copy link

seefor commented Feb 6, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants