X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=service-exposure%2Frapps-helm-installer.go;fp=service-exposure%2Frapps-helm-installer.go;h=4a5d4649e8aa9a2b53ee455c7d0c5b0792413655;hb=df61b02070956cac9ec7429281dc78ba853b46ed;hp=9dec9f7dbad595f0ea978ea5b61d49881661f1db;hpb=ff3afde70cdc9519d527fa096c31df1151d84765;p=nonrtric.git diff --git a/service-exposure/rapps-helm-installer.go b/service-exposure/rapps-helm-installer.go index 9dec9f7d..4a5d4649 100644 --- a/service-exposure/rapps-helm-installer.go +++ b/service-exposure/rapps-helm-installer.go @@ -2,7 +2,7 @@ // ========================LICENSE_START================================= // O-RAN-SC // %% -// Copyright (C) 2022: Nordix Foundation +// Copyright (C) 2022-2023: Nordix Foundation // %% // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -225,7 +225,6 @@ func runUninstall(res http.ResponseWriter, req *http.Request) { func uninstallSecurity(rapp Rapp, chartName string) error { var url string var params string - role := rapp.Roles[0].Role realm := rapp.Realm client := rapp.Client authenticator := rapp.Authenticator @@ -243,7 +242,7 @@ func uninstallSecurity(rapp Rapp, chartName string) error { // remove keycloak client fmt.Println("Removing keycloak client") url = "http://rapps-keycloak-mgr.default/remove?" - params = "name=" + client + "&realm=" + realm + "&role=" + role + "&authType=" + authenticator + params = "name=" + client + "&realm=" + realm + "&authType=" + authenticator url += params _, err = http.Get(url) if err != nil {