From dc5e797df168114f040d334cbf2a22c418c9585e Mon Sep 17 00:00:00 2001 From: Max Lin Date: Wed, 9 Sep 2015 16:18:20 +0800 Subject: [PATCH] list all deletereq request as in-ring --- osclib/list_command.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osclib/list_command.py b/osclib/list_command.py index 102b457f..7846f14c 100644 --- a/osclib/list_command.py +++ b/osclib/list_command.py @@ -44,6 +44,13 @@ class ListCommand: else: ring = self.api.project + # list all deletereq as in-ring + if action.get('type') == 'delete': + if ring: + ring = ring + " (delete request)" + else: + ring = '{} is non-ring package (delete request)'.format(target_package) + # This condition is quite moot as we dispatched stuff # above anyway if ring: