You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracked down an inconsistency while troubleshooting an error in my app. After getting the data back from Foreman I was expecting to interact with a dictionary but was unexpectedly interacting with a list.
In [112]: type(foreman_client.puppetclasses.show('apache'))
Out[112]: dict
In [113]: type(foreman_client.puppetclasses.show('apache1'))
Out[113]: list
The text was updated successfully, but these errors were encountered:
Tracked down an inconsistency while troubleshooting an error in my app. After getting the data back from Foreman I was expecting to interact with a dictionary but was unexpectedly interacting with a list.
In [112]: type(foreman_client.puppetclasses.show('apache'))
Out[112]: dict
In [113]: type(foreman_client.puppetclasses.show('apache1'))
Out[113]: list
This is returning an empty list?
The data that foreman returns has changed from apiv1 to 2, and now it's a dict,
but when getting 404 not found the methods forge the response (the same for api
1 and 2) and return [].
I'll look into it.
Please, correct me if that's not the case.
Reply to this email directly or view it on GitHub: #45
Sorry, wrote up the PR a little too fast. I was using the V2 API and when searching for a class that exists I get a dict. When searching for a non-existent class I get an empty list.
Tracked down an inconsistency while troubleshooting an error in my app. After getting the data back from Foreman I was expecting to interact with a dictionary but was unexpectedly interacting with a list.
In [112]: type(foreman_client.puppetclasses.show('apache'))
Out[112]: dict
In [113]: type(foreman_client.puppetclasses.show('apache1'))
Out[113]: list
This is returning an empty list?
The data that foreman returns has changed from apiv1 to 2, and now it's a dict,
but when getting 404 not found the methods forge the response (the same for api
1 and 2) and return [].
I'll look into it.
Please, correct me if that's not the case.
Reply to this email directly or view it on GitHub: #45
—
Reply to this email directly or view it on GitHub.
Tracked down an inconsistency while troubleshooting an error in my app. After getting the data back from Foreman I was expecting to interact with a dictionary but was unexpectedly interacting with a list.
In [112]: type(foreman_client.puppetclasses.show('apache'))
Out[112]: dict
In [113]: type(foreman_client.puppetclasses.show('apache1'))
Out[113]: list
The text was updated successfully, but these errors were encountered: