rytilahti / python-ubus

Python library for accessing ubus over JSON-RPC
17 stars 9 forks source link

Handle return types for ubus requests that has list and UBUS_OK. #2

Closed sasquatchrus closed 6 years ago

sasquatchrus commented 6 years ago

There are some requests that return a single list entry and the status is UBUS_STATUS_OK. I have made changes so that the library does not crash. Can you integrate this into your library ?

rytilahti commented 6 years ago

Looks good to me, thanks for the PR! I assume this would close #1 too?

sasquatchrus commented 6 years ago

yes. This should take care of #1 as well.

rytilahti commented 6 years ago

Great, thanks! I bumped up the version accordingly.