From c24900595880ece2cbb4f8ab7bfd11ea0c1342b7 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 29 Sep 2023 20:37:15 +0100 Subject: [PATCH] fix(aa): import missing lib & improve template indentation. --- pkg/aa/rules.go | 2 ++ pkg/aa/templates/profile.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/aa/rules.go b/pkg/aa/rules.go index 927e75d7..d2bfb91d 100644 --- a/pkg/aa/rules.go +++ b/pkg/aa/rules.go @@ -4,6 +4,8 @@ package aa +import "strings" + // Qualifier to apply extra settings to a rule type Qualifier struct { Audit bool diff --git a/pkg/aa/templates/profile.j2 b/pkg/aa/templates/profile.j2 index fa6d58c9..fe28a962 100644 --- a/pkg/aa/templates/profile.j2 +++ b/pkg/aa/templates/profile.j2 @@ -191,7 +191,7 @@ {{ " bus=" }}{{ . }} {{- end -}} {{- with .Path -}} - {{ " path=" }}{{ . }} + {{ " path=" }}{{ . }} {{- end -}} {{ "\n" }} {{- with .Interface -}}