From 50a8fa521f98c04c82aa07ff893e20f431456509 Mon Sep 17 00:00:00 2001 From: Kiran Kamineni Date: Tue, 16 Oct 2018 22:18:16 -0700 Subject: 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 --- sms-service/src/sms/handler/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sms-service') 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 -- cgit 1.2.3-korg