Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bake does not appear to support arrays #47

Closed
bdschaap opened this issue Apr 15, 2019 · 5 comments
Closed

Bake does not appear to support arrays #47

bdschaap opened this issue Apr 15, 2019 · 5 comments

Comments

@bdschaap
Copy link
Contributor

Recipes don't appear to support params that are arrays.

bake.yaml snippet

parameters:
   policyRights:
      - Listen
      - Send

Mon, 15 Apr 2019 20:09:08 GMT] East US : ehdiag-deploy deployment failed: TypeError: variable.Code.trim is not a function
[Mon, 15 Apr 2019 20:09:08 GMT] TypeError: variable.Code.trim is not a function

ARM Template snippet

"parameters": {
    "policyRights": {
      "type": "array",
      "defaultValue": [
        "Listen",
        "Send"
      ]
    }
}
@whilke
Copy link
Member

whilke commented Apr 16, 2019

What bake version are you using? Latest should have this fixed.

@bdschaap
Copy link
Contributor Author

I believe I was using latest but will confirm.

@whilke
Copy link
Member

whilke commented Apr 17, 2019

Do you mean you used --runtime latest when mixing? If so, that's mostly an antipattern.

Unless you are manually updating your local docker image for the latest tag, it might be very stale. It's better to use a specific version for --runtime when mixing.

@bdschaap
Copy link
Contributor Author

I'm doing npx bake serve bake.yaml.

Will confirm later today.

@whilke whilke closed this as completed in c9af4ab Apr 17, 2019
@whilke
Copy link
Member

whilke commented Apr 17, 2019

get latest and should be resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants