Skip to content

Commit

Permalink
do not expand missing variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Sep 10, 2015
1 parent ebded3f commit 2ecd975
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/OpenQA/Scheduler/Scheduler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,7 @@ sub _generate_jobs {
my $replace_var = $1;
$replace_var =~ s/^%(\w+)%$/$1/;
my $replace_val = $settings{$replace_var};
next unless defined $replace_val;
$replace_val = '' if $replace_var eq $var; #stop infinite recursion
$val =~ s/%${replace_var}%/$replace_val/g;
$settings{$var} = $val;
Expand Down

0 comments on commit 2ecd975

Please sign in to comment.