Skip to content

Commit

Permalink
Update util/lua/lua.go
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Ashu <[email protected]>
  • Loading branch information
ashutosh16 and agaudreault committed Sep 10, 2024
1 parent 34075ff commit da1ffbe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions util/lua/lua.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,7 @@ func (vm VM) GetResourceActionDiscovery(obj *unstructured.Unstructured) ([]strin
}

// Append or return the discovery script based on the presence of built-in actions
if len(discoveryScripts) > 0 {
discoveryScripts = append(discoveryScripts, discoveryScript)
} else {
return []string{discoveryScript}, nil
}
discoveryScripts = append(discoveryScripts, discoveryScript)

return discoveryScripts, nil
} // GetResourceAction attempts to read lua script from config and then filesystem for that resource
Expand Down

0 comments on commit da1ffbe

Please sign in to comment.