Skip to content

Commit

Permalink
Merge pull request quattor#136 from stdweird/pan_template_check
Browse files Browse the repository at this point in the history
Test/Quattor/Panc: refine valid annotation
  • Loading branch information
jouvin authored Mar 4, 2017
2 parents 35c1857 + 300ce7f commit 86ebce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-scripts/src/main/perl/Test/Quattor/Panc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ sub is_object_template
while (my $line = <$TPL>) {
chomp($line);
next if ($line =~ m/^\s*($|#)/); # ignore whitespace/comments
if ($line =~ m/^\s*@\{/ || $annotation) {
$annotation = $line !~ m/(^\s*@\{.*|@)\}\s*$/;
if ($line =~ m/^\s*@\w*\{/ || $annotation) {
$annotation = $line !~ m/\}\s*$/;
} else {
$ok = $line =~ m/^\s*object\s*template/;
last;
Expand Down

0 comments on commit 86ebce6

Please sign in to comment.