david-caro / python-foreman

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

Hostgroups Index #35

Closed xnaveira closed 9 years ago

xnaveira commented 9 years ago

When trying to use the index method for the hostgroups:

TypeError: index() takes at least 2 arguments (1 given)

If an argument is given (ie 'someargument') the following url gets queried:

 /api/puppetclasses/someargument/hostgroups

This is using Foreman 1.7.3 and use_cache=False upon object creation.

lukas-bednar commented 9 years ago

duplicated to https://github.com/david-caro/python-foreman/issues/26 , you can try patches mentioned in discussion.

david-caro commented 9 years ago

This is also fixed on #37