This is an automated email from the ASF dual-hosted git repository.

pbacsko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-core.git


The following commit(s) were added to refs/heads/master by this push:
     new e3484cd8 [YUNIKORN-2200] getClusterConfig could return extra data 
after error response (#738)
e3484cd8 is described below

commit e3484cd87de11af3d7e8ed6308b12baa00147a5e
Author: Cliff Su <[email protected]>
AuthorDate: Tue Nov 28 16:37:21 2023 +0100

    [YUNIKORN-2200] getClusterConfig could return extra data after error 
response (#738)
    
    Closes: #738
    
    Signed-off-by: Peter Bacsko <[email protected]>
---
 pkg/webservice/handlers.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pkg/webservice/handlers.go b/pkg/webservice/handlers.go
index ee4ecf22..3647e879 100644
--- a/pkg/webservice/handlers.go
+++ b/pkg/webservice/handlers.go
@@ -468,6 +468,7 @@ func getClusterConfig(w http.ResponseWriter, r 
*http.Request) {
        }
        if err != nil {
                buildJSONErrorResponse(w, err.Error(), 
http.StatusInternalServerError)
+               return
        }
        if _, err = w.Write(marshalledConf); err != nil {
                buildJSONErrorResponse(w, err.Error(), 
http.StatusInternalServerError)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to