def allocation(node,format,h):
    '''
    Allocation provides a snapshot of how shards have located around the
    cluster and the state of disk usage
    '''
    try:
        response = base.es.cat.allocation(node_id=node,bytes=format, h=h, format='json')
        table = base.draw_table(response)
    except Exception as e:
        click.echo(e)
    else:
        click.echo(table)
def allocation ( node , format , h ) : try : response = base . es . cat . allocation ( node_id = node , bytes = format , h = h , format = 'json' ) table = base . draw_table ( response ) except Exception as e : click . echo ( e ) else : click . echo ( table )
Allocation provides a snapshot of how shards have located around the
    cluster and the state of disk usage