def get_stack_id(x, y):
    """Get stack id.

    Get the portainer stack id for a given
    stack name.

    Args:
        x: Portainer stack name
        y: Deployed portainer stacks
    Return:
        String portainer stack id

    """
    return str(list(filter(lambda z: z['Name'] == x, y))[0]['Id'])