Skip to content

If the input name has a dash the ${{ .inputs.input-name }} syntax doesn't work #188

Description

@RothAndrew

Environment

Device and OS:
App version: UDS CLI v0.24.0
Kubernetes distro being used:
Other:

Steps to reproduce

  1. Make a task with an input that has a dash in its name

Expected result

All 4 types of valid input syntax work:

  1. $INPUT_MY_INPUT
  2. ${INPUT_MY_INPUT}
  3. ${{ index .inputs "my-input" }}
  4. ${{ .inputs.my-input }}

Actual Result

Only 1, 2, and 3 work. 4 fails with error of "bad substitution"

Visual Proof (screenshots, videos, text, etc)

See #187

Severity/Priority

Additional Context

This is unrelated to the new changes from #184. I checked out v0.5.0 and tested with that version and it exhibited exactly the same behavior.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions