remove os enviroment duplication

This commit is contained in:
amrita committed 2025-01-20 14:55:21 +05:45
1 parent 5cc79d962f
commit c8bb438534
1 file changed
+1 -2
@@ -8,7 +8,6 @@ import (
"net/http"
"ociswrapper/common"
"ociswrapper/ocis"
"os"
)
type BasicResponse struct {
@@ -113,7 +112,7 @@ func RollbackHandler(res http.ResponseWriter, req *http.Request) {
var message string
ocis.EnvConfigs = []string{}
success, _ := ocis.Restart(os.Environ())
success, _ := ocis.Restart([]string{})
if success {
message = "oCIS configuration rolled back successfully"
sendResponse(res, http.StatusOK, message)