You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the provider.environment setting only takes in [environment] which is defined on line 259 as (text, text).
This is impossible to satisfy with yaml.
It should take in just a dictionary. The issue starts on line 307 [Environment] which already requires a list. And finally the issue completes on line 259 with (Text, Text) which cannot be satisfied by yaml.
Example of perfectly valid test file that breaks this:
Note the difference between environment being a list or an object here, serverless will unpack these as environment variables anyway. The code should reflect this.
Hack to work around this: replace line 259 with Object (but still requires a list input, even though an object is perfectly fine as well)
The text was updated successfully, but these errors were encountered:
mathieudevos
changed the title
Environment does not take dictionary as input
Environment does variables are not handled properly
Dec 5, 2017
mathieudevos
changed the title
Environment does variables are not handled properly
Environment variables are not handled properly
Dec 8, 2017
Currently the provider.environment setting only takes in [environment] which is defined on line 259 as (text, text).
This is impossible to satisfy with yaml.
It should take in just a dictionary. The issue starts on line 307
[Environment]
which already requires a list. And finally the issue completes on line 259 with(Text, Text)
which cannot be satisfied by yaml.Example of perfectly valid test file that breaks this:
other setup which breaks it (even though serverless would accept this just fine)
Note the difference between environment being a list or an object here, serverless will unpack these as environment variables anyway. The code should reflect this.
Hack to work around this: replace line 259 with Object (but still requires a list input, even though an object is perfectly fine as well)
The text was updated successfully, but these errors were encountered: