Skip to content

Commit

Permalink
bug : getAppConfig should return node.apps pointer
Browse files Browse the repository at this point in the history
getAppConfig should return node.apps pointer instead of a pointer to
local variable app.

Signed-off-by: Shahriyar Jalayeri <[email protected]>
  • Loading branch information
shjala authored and uncleDecart committed Aug 28, 2024
1 parent e4ee32d commit f70b955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/evetestkit/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ func createEveNode(node *device.Ctx, tc *projects.TestContext) (*EveNode, error)
}

func (node *EveNode) getAppConfig(appName string) *appInstanceConfig {
for _, app := range node.apps {
if app.name == appName {
return &app
for i := range node.apps {
if node.apps[i].name == appName {
return &node.apps[i]
}
}
return nil
Expand Down

0 comments on commit f70b955

Please sign in to comment.