Skip to content

There doesn't appear to be a way to specify an empty string in the .conf file #153

Open
@rlipscombe

Description

@rlipscombe

I have a mapping:

{mapping, "db.password", "foo.bar.primary.db.password", []}.

In my foo.conf file, if I want to use a blank password, I try the following:

db.password = 

I get the following error:

escript: exception error: no function clause matching 
                 lists:unzip({[{["nodename"],"foo"},
                               {["distributed_cookie"],"foo"},
                               {["audit","root"],"/tmp"},
                               {["db","hostname"],
                                "localhost"},
                               {["db","database"],
                                "foo"},
                               {["db","username"],
                                "meh"}],
                              <<"db.password =\n">>,
                              {{line,12},{column,1}}},
                             [],[]) (lists.erl, line 387)
  in function  cuttlefish_conf:file/1 (src/cuttlefish_conf.erl, line 71)
  in call from cuttlefish_conf:'-files/1-fun-1-'/2 (src/cuttlefish_conf.erl, line 45)
  in call from lists:foldl/3 (lists.erl, line 1248)
  in call from cuttlefish_conf:files/1 (src/cuttlefish_conf.erl, line 43)
  in call from cuttlefish_escript:load_conf/1 (src/cuttlefish_escript.erl, line 307)
  in call from cuttlefish_escript:engage_cuttlefish/1 (src/cuttlefish_escript.erl, line 360)
  in call from cuttlefish_escript:generate/1 (src/cuttlefish_escript.erl, line 259)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions