feat(aa): cleanup rules methods.
This commit is contained in:
parent
dc0e0084a0
commit
1333ec2025
2 changed files with 14 additions and 24 deletions
|
|
@ -159,7 +159,7 @@ func (f *AppArmorProfileFile) resolveInclude(include *Include) error {
|
|||
}
|
||||
|
||||
// Insert iFile in the place of include in the current file
|
||||
index := f.Preamble.IndexOf(include)
|
||||
f.Preamble = f.Preamble.Insert(index, includeCache[include].Preamble...)
|
||||
index := f.Preamble.Index(include)
|
||||
f.Preamble = f.Preamble.Replace(index, includeCache[include].Preamble...)
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue