rytilahti / python-ubus

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

ici set commands not working #1

Closed maindoor closed 6 years ago

maindoor commented 6 years ago

I looked at the protocol.py a bit and looks like it assumes that if the return type is not a dict, it is a fault. But for a 'uci set', if successful, the return is just a list ([0]). This case is not handled appropriately.