Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Levant 0.3.2 broke deploying configs with int values passed from envs #467

@sokil

Description

@sokil

Description

Levant 0.3.2 broke deploying configs with int values passed from envs

Relevant Nomad job specification file

job "[[.name]]" {
    group "application" {
        count = [[ env "NOMAD_GROUP_APP_COUNT" ]]

        network {
            mode = "bridge"
            port "http" {}
        }
    }
}

Output

[ERROR] levant/command: error parsing: At 21:9: Unknown token: 21:9 IDENT network

if i fix config like this everything is fine

job "[[.name]]" {
    group "application" {
        count = "[[ env "NOMAD_GROUP_APP_COUNT" ]]"

        network {
            mode = "bridge"
            port "http" {}
        }
    }
}

Maybe this fix affects #465 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions