From d6e845231ab8a0c0c73bab3b86251159a84676ba Mon Sep 17 00:00:00 2001 From: Max Lin Date: Tue, 23 Aug 2016 16:58:44 +0800 Subject: [PATCH] Ignore add_role request in the list command --- osclib/list_command.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osclib/list_command.py b/osclib/list_command.py index 3105186c..87fad27e 100644 --- a/osclib/list_command.py +++ b/osclib/list_command.py @@ -40,6 +40,10 @@ class ListCommand: # Where are we targeting the package target_package = action.find('target').get('package') + # ignore add_role requests + if action.get('type') == 'add_role': + continue + # handle change_devel requests if action.get('type') == 'change_devel': change_devel_requests[target_package] = request_id