def backend_type(path, client):
    """Returns the type of backend at the given mountpoint"""
    backends = client.list_secret_backends()['data']
    vault_path = "%s/" % path
    return backends[vault_path]['type']
def backend_type ( path , client ) : backends = client . list_secret_backends ( ) [ 'data' ] vault_path = "%s/" % path return backends [ vault_path ] [ 'type' ]
Returns the type of backend at the given mountpoint