Fix multiple-value in single-value context error

This commit is contained in:
Sushant Salil 2017-06-14 16:40:02 +05:30
parent b440652839
commit 691a56f431

View file

@ -183,7 +183,7 @@ func main() {
// install the default apparmor profile // install the default apparmor profile
if apparmor.IsEnabled() { if apparmor.IsEnabled() {
// check if we have the docker-default apparmor profile loaded // 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) 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 { } else {
spec.Process.ApparmorProfile = defaultApparmorProfile spec.Process.ApparmorProfile = defaultApparmorProfile