Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

parameters not recognized #793

Closed
sbawaska opened this issue Jul 10, 2019 · 0 comments · Fixed by #794
Closed

parameters not recognized #793

sbawaska opened this issue Jul 10, 2019 · 0 comments · Fixed by #794

Comments

@sbawaska
Copy link
Contributor

create a bundle:

duffle create foo

add definition and parameter section to duffle.json:

"definitions": {
    "manifest_file": {
      "default": "/cnab/app/kab/manifest.yaml",
      "type": "string"
    }
  },
  "parameters": {
    "fields": {
      "param1": {
        "definition": "manifest_file",
        "destination": {
          "env:": "MANIFEST_FILE"
        }
      }
    }
  }

build the bundle:

duffle build .

specifying the parameter results in the following error:

duffle install myfoo foo -s param1=/some/path.foo
Error: parameter param1 not defined in bundle

This is despite param1 being present in the bundle definition:

cat ~/.duffle/bundles/9460e8557e16656f0f35b991eeb376e1a4086283 | jq
...
  "parameters": {
    "fields": {
      "param1": {
        "definition": "manifest_file",
        "destination": {}
      }
    }
  },
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant