Replies: 4 comments
-
Hi, this is probably due to how YAML works. (more info: https://stackoverflow.com/questions/54820256/how-to-read-load-yaml-parameters-with-leading-zeros-as-a-string) I'd suggest to treat these numbers as strings 'user="03303560"' unless you really need it to be an integer starting with zero. |
Beta Was this translation helpful? Give feedback.
-
Thanks @1oglop1 , that make sense. I need to figure out because actually I use variables: Therefore, I need to substitute |
Beta Was this translation helpful? Give feedback.
-
Blind shot, but try out this:
https://yaml.org/type/str.html here is what's going to happen (what I expect to happen):
|
Beta Was this translation helpful? Give feedback.
-
After using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
It seems that Sceptre somehow interprets variables starting with 0 as octal and converts them to decimal. This is a an Issue because we have user names that start with 0. Here is the example
Sceptre Config file:
sceptre --var "user=03303560" launch TEST/s3
When I execute this the value in the deployed cloudformation template becomes 886640.
Is it possible to do something about this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions