-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
Description
Hi guys,
I'm trying to use as much as I can the managers. Using the order manager gave me some hard time because of the iter parameter not usable via the list_items() method for example.
list_items() method only takes filter and mask as argument.
My tests
return self.order.list_items(pkg_name, filter=filter, mask=mask)
Using the data returned by this method with Ansible return this error even if the returned value is a dict:
super(SoftLayerListResult, self).__init__(items)\nTypeError: 'NoneType' object is not iterable\n",
By using directly the call() method with iter=True Ansible is able to return the data from API.
return self.client.call("Product_Package", "getItems", id=pkg_id,
filter=filter, mask=mask, iter=True)
Question
What will be the best way to have iter parameter usable with the manager's methods?
Environment Information
Operating System: Fedora 31
softlayer-python version (slcli --version): v5.8.7