Use utils.BoolPointer for populate args.ProcessThreshold in fsevent and kamevent

This commit is contained in:
TeoV
2018-03-05 05:25:51 -05:00
committed by Dan Christian Bogos
parent eb8bcd7508
commit 1338e43edb

View File

@@ -399,7 +399,7 @@ func (fsev FSEvent) V1AuthorizeArgs() (args *sessions.V1AuthorizeArgs) {
args.GetAttributes = true
}
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
*args.ProcessThreshold = true
args.ProcessThreshold = utils.BoolPointer(true)
}
return
}
@@ -434,7 +434,7 @@ func (fsev FSEvent) V1InitSessionArgs() (args *sessions.V1InitSessionArgs) {
args.GetAttributes = true
}
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
*args.ProcessThreshold = true
args.ProcessThreshold = utils.BoolPointer(true)
}
return
}
@@ -466,7 +466,7 @@ func (fsev FSEvent) V1TerminateSessionArgs() (args *sessions.V1TerminateSessionA
args.ReleaseResources = true
}
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
*args.ProcessThreshold = true
args.ProcessThreshold = utils.BoolPointer(true)
}
return
}