summaryrefslogtreecommitdiffstats
path: root/sms-service
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-10-16 22:18:16 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2018-10-16 22:18:26 -0700
commit50a8fa521f98c04c82aa07ff893e20f431456509 (patch)
tree3b2ddaea57f1993dec555b9c1b925c6d3ab23973 /sms-service
parent90144a5ec60d7941cf8bbd81dc3e525df981c0d3 (diff)
SMS healthcheck should unmount domain
SMS healthcheck should unmount domain using the domain name instead of UUID Issue-ID: AAF-570 Change-Id: I43fb881e047bf840e698b7f8e317125abb421a7b Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'sms-service')
-rw-r--r--sms-service/src/sms/handler/handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sms-service/src/sms/handler/handler.go b/sms-service/src/sms/handler/handler.go
index 902d170..805f7a8 100644
--- a/sms-service/src/sms/handler/handler.go
+++ b/sms-service/src/sms/handler/handler.go
@@ -266,13 +266,13 @@ func (h handler) healthCheckHandler(w http.ResponseWriter, r *http.Request) {
// backend is not sealed
dname, _ := uuid.GenerateUUID()
- dom, err := h.secretBackend.CreateSecretDomain(dname)
+ _, err = h.secretBackend.CreateSecretDomain(dname)
if smslogger.CheckError(err, "HealthCheck Create Domain") != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
- err = h.secretBackend.DeleteSecretDomain(dom.UUID)
+ err = h.secretBackend.DeleteSecretDomain(dname)
if smslogger.CheckError(err, "HealthCheck Delete Domain") != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return