Handle per-pool lists better

This commit is contained in:
Joshua Boniface 2019-06-19 14:11:03 -04:00
parent bc38af774e
commit 4ca0fe8f6f
1 changed files with 6 additions and 4 deletions

View File

@ -1376,13 +1376,15 @@ def ceph_volume_remove(pool, name):
# pvc ceph volume list # pvc ceph volume list
############################################################################### ###############################################################################
@click.command(name='list', short_help='List cluster RBD volumes.') @click.command(name='list', short_help='List cluster RBD volumes.')
@click.argument(
'pool', default='all', required=False
)
@click.argument( @click.argument(
'limit', default=None, required=False '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. List all Ceph RBD volumes in the cluster or in pool POOL; optionally only match elements matching name regex LIMIT.
""" """