From c8bb43853498e6d80e787ce50973f506ff0ce9f4 Mon Sep 17 00:00:00 2001 From: amrita Date: Mon, 20 Jan 2025 14:55:21 +0545 Subject: [PATCH] remove os enviroment duplication --- tests/ociswrapper/wrapper/handlers/handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/ociswrapper/wrapper/handlers/handler.go b/tests/ociswrapper/wrapper/handlers/handler.go index c2bd1cde55a..16ef3158c80 100644 --- a/tests/ociswrapper/wrapper/handlers/handler.go +++ b/tests/ociswrapper/wrapper/handlers/handler.go @@ -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)