queue-member-list displays wrong info

Bug #1255661 reported by Paul Belanger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
payload
Fix Released
High
Sergey Fedoseev

Bug Description

It looks like there is a bug where queue-member-list is returning the wrong information, see below. Looking at the code, it seems the command does not take into count the queue argument for filtering.

---

pabelanger@hal9000:~/git/pabelanger/python-payloadclient$ .tox/py27/bin/payload queue-member-list 26a71142-efd4-4a83-8679-214597a7505a
2013-11-27 15:04:52.056 25625 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 166.78.145.144
+----------------------------------+----------------------------+------------+
| agent_uuid | created_at | updated_at |
+----------------------------------+----------------------------+------------+
| d8b72b5790b84435aea6702ccef8c8d7 | 2013-11-27T19:21:27.747348 | |
+----------------------------------+----------------------------+------------+
pabelanger@hal9000:~/git/pabelanger/python-payloadclient$ .tox/py27/bin/payload queue-member-list 0dea76e2-7e80-42ef-b2f3-8a7a63b02ce0
2013-11-27 15:05:10.452 25650 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 166.78.145.144
+----------------------------------+----------------------------+------------+
| agent_uuid | created_at | updated_at |
+----------------------------------+----------------------------+------------+
| d8b72b5790b84435aea6702ccef8c8d7 | 2013-11-27T19:21:27.747348 | |
+----------------------------------+----------------------------+------------+
pabelanger@hal9000:~/git/pabelanger/python-payloadclient$ .tox/py27/bin/payload queue-member-remove 26a71142-efd4-4a83-8679-214597a7505a d8b72b5790b84435aea6702ccef8c8d7
2013-11-27 15:05:16.949 25660 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 166.78.145.144
2013-11-27 15:05:17.528 25660 WARNING payloadclient.common.http [-] Request returned failure status.
2013-11-27 15:05:17.528 25660 ERROR cliff.app [-] Queue member d8b72b5790b84435aea6702ccef8c8d7 could not be found (HTTP N/A)
pabelanger@hal9000:~/git/pabelanger/python-payloadclient$ .tox/py27/bin/payload queue-member-remove 26a71142-efd4-4a83-8679-214597a7505a d8b72b5790b84435aea6702ccef8c8d7
2013-11-27 15:05:40.108 25670 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 166.78.145.144
2013-11-27 15:05:40.702 25670 WARNING payloadclient.common.http [-] Request returned failure status.
2013-11-27 15:05:40.703 25670 ERROR cliff.app [-] Queue member d8b72b5790b84435aea6702ccef8c8d7 could not be found (HTTP N/A)

Changed in payload:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Sergey Fedoseev (sir-sigurd)
Changed in payload:
status: Triaged → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.