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

config values in YAML are not where expected in context #12

Open
c094728 opened this issue Apr 27, 2018 · 0 comments
Open

config values in YAML are not where expected in context #12

c094728 opened this issue Apr 27, 2018 · 0 comments

Comments

@c094728
Copy link

c094728 commented Apr 27, 2018

In my func.yaml file I have this

name: crawl
version: 0.0.4
runtime: node
entrypoint: node func.js
type: async
format: json
timeout: 1800
config:
  ALLOWED_HTTP_METHOD: POST
  FN_SERVER_HOST:  http://someurl.com
  FN_TEST: test value
idle_timeout: 3600

In the context I receive when running
ALLOWED_HTTP_METHOD is under ctx.config.properties.ALLOWED_HTTP_METHOD
which is reasonable.
but the other two config values I added show up under
ctx.payload.server_host
ctx.payload.test

different path, lower case and removal of FN_
is there a reason this is so obfuscated?

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

1 participant