Project

General

Profile

« Previous | Next » 

Revision 9d43fc71

Added by Michael Moll almost 6 years ago

Fixes #19789 - fix Layout/SpaceAroundOperators cop

View differences:

app/services/classification/matches_generator.rb
matches << match.join(LookupKey::KEY_DELM)
hostgroup_matches.each do |hostgroup_match|
match[match.index { |m| m =~ /hostgroup\s*=/ }]=hostgroup_match
match[match.index { |m| m =~ /hostgroup\s*=/ }] = hostgroup_match
matches << match.join(LookupKey::KEY_DELM)
end if add_hostgroup_matches?(rule)
end
......
if host.hostgroup
path = host.hostgroup.to_label
while path.include?("/")
path = path[0..path.rindex("/")-1]
path = path[0..path.rindex("/") - 1]
matches << "hostgroup#{LookupKey::EQ_DELM}#{path}"
end
end

Also available in: Unified diff