Handle per-pool lists better
This commit is contained in:
		@@ -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.
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user