david-caro / python-foreman

Small low level python wrapper around Foreman API
GNU General Public License v2.0
57 stars 37 forks source link

Can't figure out how to use `/api/hostgroups/:hostgroup_id/hosts`... #89

Closed digitalfiz closed 6 years ago

digitalfiz commented 6 years ago

Is it possible with this module to use sub resources of a resource? I have tried many different ways and I can't figure it out :/

digitalfiz commented 6 years ago

Figured it out litterally 10 seconds after posting this :P its:

f.hosts.index(hostgroup_id=hostgroup['id'])
david-caro commented 6 years ago

:+1: