Commit 602e1c6d authored by Mike Hibler's avatar Mike Hibler

Replace *all* instances of firewall variables in a line.

parent 4ebc8848
...@@ -855,7 +855,7 @@ sub expandfwvars($) ...@@ -855,7 +855,7 @@ sub expandfwvars($)
if ($rule->{RULE} =~ /EMULAB_\w+/) { if ($rule->{RULE} =~ /EMULAB_\w+/) {
foreach my $key (keys %fwvars) { foreach my $key (keys %fwvars) {
$rule->{RULE} =~ s/$key/$fwvars{$key}/ $rule->{RULE} =~ s/$key/$fwvars{$key}/g
if (defined($fwvars{$key})); if (defined($fwvars{$key}));
} }
if ($rule->{RULE} =~ /EMULAB_\w+/) { if ($rule->{RULE} =~ /EMULAB_\w+/) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment