Skip to content

Commit 8a2d883

Browse files
better
1 parent 267f069 commit 8a2d883

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,13 @@ func newArgoRuntimeAPI(codefresh *codefresh) IArgoRuntimeAPI {
3636
}
3737

3838
func (r *argoRuntime) Create(runtimeName string) (*model.RuntimeCreationResponse, error) {
39-
// the newlines are necessary
40-
var interpolatedMutation interface{} = fmt.Sprintf("mutation {\n runtime(name: \"%s\") {\n id\n newAccessToken\n }\n}\n", runtimeName)
39+
interpolatedMutation := fmt.Sprintf(`mutation {
40+
runtime(name: "%s") {
41+
id
42+
newAccessToken
43+
}
44+
}
45+
`, runtimeName)
4146

4247
jsonData := map[string]interface{}{
4348
"query": interpolatedMutation,

0 commit comments

Comments
 (0)