osc-lib find() throws TypeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Undecided
|
Rabi Mishra |
Bug Description
When using find() interface without specifying attr argument, secondary search throws TypeError as it uses kwargs = {None: value}
Dec 22 13:51:54.625702 ubuntu-
Dec 22 13:51:54.625918 ubuntu-
Dec 22 13:51:54.626106 ubuntu-
Dec 22 13:51:54.626437 ubuntu-
Changed in python-openstackclient: | |
assignee: | nobody → Rabi Mishra (rabi) |
Changed in python-openstackclient: | |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/529934 /git.openstack. org/cgit/ openstack/ osc-lib/ commit/ ?id=a9893be6241 6e04e10ff42cba0 d64e70353c6f94
Committed: https:/
Submitter: Zuul
Branch: master
commit a9893be62416e04 e10ff42cba0d64e 70353c6f94
Author: rabi <email address hidden>
Date: Sat Dec 23 19:01:50 2017 +0530
Fix find() interface when attr is not specified
It seems to use None as the attr key and throws TypeError.
Let's not do the secondary search when attr is not specified.
Change-Id: Ic240d19f48d362 ab74a91bace5eab 31542823718
Closes-Bug: #1739882