Skip to content

Commit 47fd208

Browse files
fully tested
1 parent 5cf910f commit 47fd208

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ type (
4040
Errors []graphqlError
4141
}
4242

43+
graphQlRuntimeCreationResponseNew struct {
44+
Data struct {
45+
RuntimeNew model.RuntimeCreationResponse
46+
}
47+
Errors []graphqlError
48+
}
49+
4350
graphQlDeleteRuntimeResponse struct {
4451
Data struct {
4552
DeleteRuntime int
@@ -67,7 +74,7 @@ func (r *argoRuntime) Create(ctx context.Context, opts *model.RuntimeInstallatio
6774
},
6875
}
6976

70-
res := &graphQlRuntimeCreationResponse{}
77+
res := &graphQlRuntimeCreationResponseNew{}
7178
err := r.codefresh.graphqlAPI(ctx, jsonData, res)
7279
if err != nil {
7380
return nil, fmt.Errorf("failed making a graphql API call while creating runtime: %w", err)
@@ -77,7 +84,7 @@ func (r *argoRuntime) Create(ctx context.Context, opts *model.RuntimeInstallatio
7784
return nil, graphqlErrorResponse{errors: res.Errors}
7885
}
7986

80-
return &res.Data.Runtime, nil
87+
return &res.Data.RuntimeNew, nil
8188
}
8289

8390
func (r *argoRuntime) Get(ctx context.Context, name string) (*model.Runtime, error) {

0 commit comments

Comments
 (0)