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 6d382048df
commit 0f597a2b5b
2 changed files with 6 additions and 6 deletions

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
}

View File

@@ -245,7 +245,7 @@ func (kev KamEvent) V1AuthorizeArgs() (args *sessions.V1AuthorizeArgs) {
args.GetAttributes = true
}
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
*args.ProcessThreshold = true
args.ProcessThreshold = utils.BoolPointer(true)
}
return
}
@@ -333,7 +333,7 @@ func (kev KamEvent) V1InitSessionArgs() (args *sessions.V1InitSessionArgs) {
args.GetAttributes = true
}
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
*args.ProcessThreshold = true
args.ProcessThreshold = utils.BoolPointer(true)
}
return
}
@@ -385,7 +385,7 @@ func (kev KamEvent) V1TerminateSessionArgs() (args *sessions.V1TerminateSessionA
args.ReleaseResources = true
}
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
*args.ProcessThreshold = true
args.ProcessThreshold = utils.BoolPointer(true)
}
return
}