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

problem with updating puppetclasses for a host #92

Open
svenXY opened this issue Jul 18, 2018 · 0 comments
Open

problem with updating puppetclasses for a host #92

svenXY opened this issue Jul 18, 2018 · 0 comments

Comments

@svenXY
Copy link

svenXY commented Jul 18, 2018

Hi,
I'm trying to add a puppetclass to the puppetclasses of a host, but can't seem to find out how.

First attempt was something like:

pc = f.show_puppetclasses(p_id)
host = f.show_hosts(id)
host['puppetclasses'].append(pc)
f.update_hosts(id=host['id'], host=host)

but that does nothing and even returns an empty resultset

then

ppn = { 'puppetclass_id': 4212 }
f.update_hosts(id=host['id'], host=ppn)

this takes much longer and returns the host resultset, but the class is not added.

Maybe you have a hint?

Thanks,
Sven

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

1 participant