Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
execute integrations #38
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Nov 3, 2022
1 parent e253272 commit 8889f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/integrations/executions.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func Execute(name string, content []byte) (respBody []byte, err error) {
}

u, _ := url.Parse(apiclient.GetBaseIntegrationURL())
u.Path = path.Join(u.Path, "integrations", name, ":execute")
u.Path = path.Join(u.Path, "integrations", name+":execute")
respBody, err = apiclient.HttpClient(apiclient.GetPrintOutput(), u.String(), string(content))
return respBody, err
}
2 changes: 1 addition & 1 deletion cmd/integrations/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var ExecuteCmd = &cobra.Command{
},
RunE: func(cmd *cobra.Command, args []string) (err error) {

if _, err := os.Stat(integrationFile); os.IsNotExist(err) {
if _, err := os.Stat(executionFile); os.IsNotExist(err) {
return err
}

Expand Down

0 comments on commit 8889f4f

Please sign in to comment.