summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
0725130)
Issue-ID: NONRTRIC-814
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: I8e637dd5356923ddc6dfe7a4c0401c46da5e2a6e
return sendCoreError(ctx, http.StatusBadRequest, "Invalid format for provider")
}
return sendCoreError(ctx, http.StatusBadRequest, "Invalid format for provider")
}
+ pm.lock.Lock()
+ defer pm.lock.Unlock()
+
for _, function := range *updatedProvider.ApiProvFuncs {
if function.ApiProvFuncId == nil {
function.ApiProvFuncId = pm.getFuncId(function.ApiProvFuncRole, function.ApiProvFuncInfo)
for _, function := range *updatedProvider.ApiProvFuncs {
if function.ApiProvFuncId == nil {
function.ApiProvFuncId = pm.getFuncId(function.ApiProvFuncRole, function.ApiProvFuncInfo)
ps.helmManager.UninstallHelmChart(info[1], info[3])
log.Info("Deleted service: ", serviceApiId)
}
ps.helmManager.UninstallHelmChart(info[1], info[3])
log.Info("Deleted service: ", serviceApiId)
}
+ ps.lock.Lock()
+ defer ps.lock.Unlock()
delete(ps.publishedServices, string(serviceApiId))
}
return ctx.NoContent(http.StatusNoContent)
delete(ps.publishedServices, string(serviceApiId))
}
return ctx.NoContent(http.StatusNoContent)