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

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

parent 4ebc8848
......@@ -855,7 +855,7 @@ sub expandfwvars($)
if ($rule->{RULE} =~ /EMULAB_\w+/) {
foreach my $key (keys %fwvars) {
$rule->{RULE} =~ s/$key/$fwvars{$key}/
$rule->{RULE} =~ s/$key/$fwvars{$key}/g
if (defined($fwvars{$key}));
if ($rule->{RULE} =~ /EMULAB_\w+/) {
Supports Markdown
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