Revision d7c67746
Added by Michael Moll almost 6 years ago
app/services/classification/matches_generator.rb | ||
---|---|---|
match = generate_match(rule)
|
||
matches << match.join(LookupKey::KEY_DELM)
|
||
|
||
hostgroup_matches.each do |hostgroup_match|
|
||
match[match.index { |m| m =~ /hostgroup\s*=/ }] = hostgroup_match
|
||
matches << match.join(LookupKey::KEY_DELM)
|
||
end if add_hostgroup_matches?(rule)
|
||
if add_hostgroup_matches?(rule)
|
||
hostgroup_matches.each do |hostgroup_match|
|
||
match[match.index { |m| m =~ /hostgroup\s*=/ }] = hostgroup_match
|
||
matches << match.join(LookupKey::KEY_DELM)
|
||
end
|
||
end
|
||
end
|
||
matches
|
||
end
|
Also available in: Unified diff
Fixes #19873 - Fix Style/MultilineIfModifier cop (#5705)