cnabio / duffle

CNAB installer
https://duffle.sh
MIT License
375 stars 54 forks source link

Parameter not defined in bundle if parameter name does not match definition name #838

Closed itowlson closed 5 years ago

itowlson commented 5 years ago

I am finding that if I have parameters whose names do not match the names of their definitions then I get Error: parameter <paramname> not defined in bundle.

E.g. with

  "definitions": {
    "regionnn": {
      "type": "string",
      "default": "New Zealand South",
      "minLength": 4,
      "maxLength": 24
    }
  },
  "parameters": {
    "region": {
      "definition": "regionnn",
      "destination": {}
    },
  },

I run duffle install ... --set region=nzsth and get Error: parameter region not defined in bundle

glyn commented 5 years ago

Looks like a bug (and probably a missing test).

jeremyrickard commented 5 years ago

I think this is the same underlying issue as #816