From 4ca0fe8f6f97dae896b2a245fadcab69b728df42 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 19 Jun 2019 14:11:03 -0400 Subject: [PATCH] Handle per-pool lists better --- client-cli/pvc.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client-cli/pvc.py b/client-cli/pvc.py index 2b44cdeb..66dbdef1 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -1376,13 +1376,15 @@ def ceph_volume_remove(pool, name): # pvc ceph volume list ############################################################################### @click.command(name='list', short_help='List cluster RBD volumes.') -@click.argument( - 'pool', default='all', required=False -) @click.argument( 'limit', default=None, required=False ) -def ceph_volume_list(pool, limit): +@click.option( + '-p', '--pool', 'pool', + default='all', show_default=True, + help='Show volumes from this pool only.' +) +def ceph_volume_list(limit, pool): """ List all Ceph RBD volumes in the cluster or in pool POOL; optionally only match elements matching name regex LIMIT. """