Open rlipscombe opened 10 years ago
That happens because the result of the parse is not checked strictly. conf_parse:file/1
returns list()
on success and {list(), binary(), {{line,pos_integer()},{column,pos_integer()}}}
on incomplete parse.
Assigning to 2.1 milestone, if necessary we can move it up.
Sorry, more to the point - I doubt the "empty string" will be a valid RHS in this format, ever. It would be better to define an atom value, or other setting that disables the password. Also, if you don't have a default for the setting, it will remain unset.
In your schema example, this is the case. The user need only omit the setting from the conf file for the password to be empty/unset.
Another possibility would be to interpret the empty 'string' ""
in a translation, but that also feels like a hack.
I have a mapping:
In my foo.conf file, if I want to use a blank password, I try the following:
I get the following error: