Skip to content

Commit a1ee14c

Browse files
committed
Merge pull request #63 from helgi/run
ref(deis run): the API now uses exit_code instead of rc for the exit_code (ReturnCode)
2 parents cb24ddb + 4abdced commit a1ee14c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

controller/api/apps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ type AppRunRequest struct {
2828
// AppRunResponse is the definition of /v2/apps/<app id>/run.
2929
type AppRunResponse struct {
3030
Output string `json:"output"`
31-
ReturnCode int `json:"rc"`
31+
ReturnCode int `json:"exit_code"`
3232
}

controller/models/apps/apps_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func (f *fakeHTTPServer) ServeHTTP(res http.ResponseWriter, req *http.Request) {
126126
return
127127
}
128128

129-
res.Write([]byte(`{"rc":0,"output":"hi\n"}`))
129+
res.Write([]byte(`{"exit_code":0,"output":"hi\n"}`))
130130
return
131131
}
132132

0 commit comments

Comments
 (0)