Skip to content

Jinja in Day2 operation request #865

@VladoPortos

Description

@VladoPortos

Hello,

I'm slowly figuring most of the stuff up but got stuck on one issue. I have a day 2 operation. Update, that I want to limit to the instance parameter. But when I put in

"Default limits" a {{ request.instance.admin_spec.hcloud_server_name }}
I get error in log: response was :{"limit":["Not a valid string."]}

But in the instance Admin spec is:

{
    "hcloud_server_id": "106853707",
    "hcloud_server_name": "poc-vm",
    "hcloud_ipv4": "65.107.212.205",
    "location": "hel1",
    "server_type": "cpx11",
    "image": "ubuntu-24.04",
    "labels": {
        "env": "poc",
        "role": "generic"
    },
    "firewall_name": "awx-custom1",
    "ssh_key_name": "vladoportos"
}

and I would love to have the limit contain hcloud_server_name as it goes to AWX for execution.

I'm pretty sure that I just doing something basic wrong. Could you guys help ? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions