ccmarris / python-bloxone

BSD 2-Clause "Simplified" License
2 stars 3 forks source link

Delete domain from custom list throws missing argument error #3

Open redelsoft opened 1 year ago

redelsoft commented 1 year ago

Adding domains to custom lists with add_items_to_custom_list() works, but deleting throws an objpath error. add a domain: tdc = bloxone.b1tdc("bloxone.ini") tdc.add_items_to_custom_list(name="Custom Block List", items=["test.xyz"])

remove a domain: tdc = bloxone.b1tdc("bloxone.ini") tdc.delete_items_from_custom_list(name="Custom Block List", items=["test.xyz"]) Traceback (most recent call last): File "\bloxonetd\editList.py", line 43, in tdc.delete_items_from_custom_list(name="Custom Block List", items=["test.xyz"]).json() File "\Python\Python38\lib\site-packages\bloxone\b1tdc.py", line 397, in delete_items_from_custom_list response = b1tdc.delete(request, body=json.dumps(body)) TypeError: delete() missing 1 required positional argument: 'objpath'

mragusa commented 2 weeks ago

Issue has been resolved with latest update.