From 691a56f431522ff9177e1a26850be5a05a0153fb Mon Sep 17 00:00:00 2001 From: Sushant Salil Date: Wed, 14 Jun 2017 16:40:02 +0530 Subject: [PATCH] Fix multiple-value in single-value context error --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index af9e919..4dfe0a5 100644 --- a/main.go +++ b/main.go @@ -183,7 +183,7 @@ func main() { // install the default apparmor profile if apparmor.IsEnabled() { // check if we have the docker-default apparmor profile loaded - if err := aaprofile.IsLoaded(defaultApparmorProfile); err != nil { + if _, err := aaprofile.IsLoaded(defaultApparmorProfile); err != nil { logrus.Warnf("AppArmor enabled on system but the %s profile is not loaded. apparmor_parser needs root to load a profile so we can't do it for you.", defaultApparmorProfile) } else { spec.Process.ApparmorProfile = defaultApparmorProfile