summaryrefslogtreecommitdiff
path: root/barbicanclient
diff options
context:
space:
mode:
authorJeremy Liu <liujiong@gohighsec.com>2017-07-25 15:15:59 +0800
committerJeremy Liu <liujiong@gohighsec.com>2017-07-25 15:15:59 +0800
commite0e3703c2916043032d8026a6d2578c205474894 (patch)
treedf8704995c4531bc81a8999555dd1978cbaf1b78 /barbicanclient
parentb045cbdd164401cd281208ab5bf6dbd041bdc349 (diff)
downloadpython-barbicanclient-e0e3703c2916043032d8026a6d2578c205474894.tar.gz
Add secret_type filter to CLI
Change-Id: I6d74bd3146e328b74c2ddc6484e76b66adce3349
Diffstat (limited to 'barbicanclient')
-rw-r--r--barbicanclient/barbican_cli/v1/secrets.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/barbicanclient/barbican_cli/v1/secrets.py b/barbicanclient/barbican_cli/v1/secrets.py
index ddaaf18..db91c62 100644
--- a/barbicanclient/barbican_cli/v1/secrets.py
+++ b/barbicanclient/barbican_cli/v1/secrets.py
@@ -114,12 +114,16 @@ class ListSecret(lister.Lister):
parser.add_argument('--mode', '-m', default=None,
help='the algorithm mode filter for the'
' list (default: %(default)s).')
+ parser.add_argument('--secret-type', '-s', default=None,
+ help='specify the secret type '
+ '(default: %(default)s).')
return parser
def take_action(self, args):
obj_list = self.app.client_manager.key_manager.secrets.list(
limit=args.limit, offset=args.offset, name=args.name,
- algorithm=args.algorithm, mode=args.mode, bits=args.bit_length)
+ algorithm=args.algorithm, mode=args.mode, bits=args.bit_length,
+ secret_type=args.secret_type)
return secrets.Secret._list_objects(obj_list)