We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 267f069 commit 8a2d883Copy full SHA for 8a2d883
pkg/codefresh/argo_runtime.go
@@ -36,8 +36,13 @@ func newArgoRuntimeAPI(codefresh *codefresh) IArgoRuntimeAPI {
36
}
37
38
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)
+ interpolatedMutation := fmt.Sprintf(`mutation {
+ runtime(name: "%s") {
41
+ id
42
+ newAccessToken
43
+ }
44
45
+ `, runtimeName)
46
47
jsonData := map[string]interface{}{
48
"query": interpolatedMutation,
0 commit comments