-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.travis.yml: Fix cmd errors #592
Conversation
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Travis tests have failedHey @gaocegege, 3rd Buildgometalinter --config=linter_config.json --vendor ./...
|
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Travis tests have failedHey @gaocegege, 3rd Buildgometalinter --config=linter_config.json -s test --vendor ./...
|
Travis tests have failedHey @gaocegege, 2nd Buildgometalinter --config=linter_config.json -s test --vendor ./...
3rd Buildgometalinter --config=linter_config.json -s test --vendor ./...
|
/assign @ScorpioCPH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some nits.
} | ||
} | ||
|
||
func (apiHandler *APIHandler) handleDeploy(request *restful.Request, response *restful.Response) { | ||
clt := apiHandler.cManager.TFJobClient | ||
tfJob := new(v1alpha1.TFJob) | ||
if err := request.ReadEntity(tfJob); err != nil { | ||
response.WriteError(http.StatusBadRequest, err) | ||
if newErr := response.WriteError(http.StatusBadRequest, err); newErr != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: how about use err2, If there is a third error, we can use err3 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Updated PTAL @ScorpioCPH |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ScorpioCPH The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* .travis.yml: Fix cmd errors Signed-off-by: Ce Gao <gaoce@caicloud.io> * dashboard: Fix Signed-off-by: Ce Gao <gaoce@caicloud.io> * backend: Fix Signed-off-by: Ce Gao <gaoce@caicloud.io> * *: Fix Signed-off-by: Ce Gao <gaoce@caicloud.io> * api: Fix err variable name Signed-off-by: Ce Gao <gaoce@caicloud.io>
* .travis.yml: Fix cmd errors Signed-off-by: Ce Gao <gaoce@caicloud.io> * dashboard: Fix Signed-off-by: Ce Gao <gaoce@caicloud.io> * backend: Fix Signed-off-by: Ce Gao <gaoce@caicloud.io> * *: Fix Signed-off-by: Ce Gao <gaoce@caicloud.io> * api: Fix err variable name Signed-off-by: Ce Gao <gaoce@caicloud.io>
Close #586
Signed-off-by: Ce Gao gaoce@caicloud.io
This change is