david-caro / python-foreman

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

doesn't work with foreman 1.21 - yield empty results. #95

Open Gyges-of-lydia opened 5 years ago

Gyges-of-lydia commented 5 years ago

example - fb = Foreman('https://example.foreman.my_org.com', (creds.forman_user, creds.forman_pass)) fb.hosts.index(500)

give nothing.

schlitzered commented 5 years ago

trz adding "api_version=2" when creating the foreman client instance. you maybe also have to add "use_cache=False"