hashicorp/levant

Levant 0.3.2 broke deploying configs with int values passed from envs

sokil opened this issue · 1 comments

sokil commented

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 ?

Hi @sokil and thanks for raising this issue. I will take a look when I can, but glad you have a workaround which others can also use if they come across this.