def get_crush_rule_pool(cluster,
                        name,
                        user,
                        user_key,
                        output_format='json',
                        container_image=None):
    '''
    Get crush rule type on a given pool
    '''

    args = ['get', name, 'crush_rule', '-f', output_format]

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

    return cmd

    Get crush rule type on a given pool
    
library/ceph_pool.py