Skip to content

Commit

Permalink
list overrides are not allowed
Browse files Browse the repository at this point in the history
The edit.c code calls fr_pair_list_afrom_str(), which does NOT
handle list over-rides.

Plus, we are assigning to a list as

	&list += "pairs = value"

so having a list override does not make sense.
  • Loading branch information
alandekok committed Oct 11, 2023
1 parent 350ca9b commit 2ab740f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/modules/exec/backticks_list.unlang
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ if (&Tmp-String-0 != 'hello') {
}

#
# Test default list override
# @todo - list over-rides are not allowed!
#
&control += `/bin/sh -c "echo reply.Reply-Message := \'hello\'"`
&control += `/bin/sh -c "echo Reply-Message := \'hello\'"`

if (&reply.Reply-Message != 'hello') {
if (&control.Reply-Message != 'hello') {
test_fail
} else {
test_pass
Expand Down

0 comments on commit 2ab740f

Please sign in to comment.