-
Notifications
You must be signed in to change notification settings - Fork 64
ignition_directory and ignition_file support only decimal value for mode #68
Comments
I am having this problem as well. |
Seems like a regression to me as I remember getting this to work |
@sean-abbott @PawelZ-iHQ what version of terraform are you using ? (0.11, 0.12, 0.13) |
to make sure my code works in all cases, I use expression like:
|
The following code works well with terraform 0.11:
which gives:
but with terraform 0.12:
|
In fact it does not work either with format for TF 0.12 anymore: hashicorp/terraform#22143 |
I'm using 0.12, and will probably look at migrating to 0.13 the next time I touch terraform. |
I had a brief look at this and I don't think It'd be possible to use octal values given the constraints on HCL2 as I explained in community-terraform-providers#4 (comment) |
Ignition documentation for ignition_file and ignition_directory state that
mode
argument can be provided either octal or decimal:While provided values are evaluated as decimals only, even with leading
0
. For example0755
results with--wxrw--wx
0363 octal and 243 decimal.Quick look at the code suggests that mode is evaluated as
TypeInt
.Please either extend code, so both octal and decimal are evaluated correctly or update documentation to state that only decimal values are accepted.
The text was updated successfully, but these errors were encountered: