library/ceph_pool.py
def check_pool_exist(cluster,
                     name,
                     user,
                     user_key,
                     output_format='json',
                     container_image=None):
    '''
    Check if a given pool exists
    '''

    args = ['stats', name, '-f', output_format]

    cmd = generate_ceph_cmd(sub_cmd=['osd', 'pool'],
                            args=args,
                            cluster=cluster,
                            user=user,
                            user_key=user_key,
                            container_image=container_image)

    return cmd

    Check if a given pool exists
    
Check if a given pool exists
Check if a given pool exists
def check_pool_exist(cluster,
                     name,
                     user,
                     user_key,
                     output_format='json',
                     container_image=None):
    args = ['stats', name, '-f', output_format]
    cmd = generate_ceph_cmd(sub_cmd=['osd', 'pool'],
                            args=args,
                            cluster=cluster,
                            user=user,
                            user_key=user_key,
                            container_image=container_image)
    return cmd
def check_pool_exist ( cluster , name , user , user_key , output_format = 'json' , container_image = None ) : args = [ 'stats' , name , '-f' , output_format ] cmd = generate_ceph_cmd ( sub_cmd = [ 'osd' , 'pool' ] , args = args , cluster = cluster , user = user , user_key = user_key , container_image = container_image ) return cmd
Check if a given pool exists
Check if a given pool exists
'''
    Check if a given pool exists
    '''
cluster
name
user
user_key
output_format
container_image