From cb3ba5f58fa383f37ecdcb70f1c044ba0b178d2c Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Sat, 2 Jan 2021 20:25:16 +0330 Subject: [PATCH] rbd: fix namespace json parser for xbdDeviceInfo rbd device list --format=json returns namespace as a namespace not radosNamespace Signed-off-by: Seena Fallah (cherry picked from commit fdec9f65b81144fdb4e72039fecb49e5cc3a5828) --- internal/rbd/rbd_attach.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rbd/rbd_attach.go b/internal/rbd/rbd_attach.go index 7ce3d6cb7..b6bd3e21d 100644 --- a/internal/rbd/rbd_attach.go +++ b/internal/rbd/rbd_attach.go @@ -59,7 +59,7 @@ func init() { type rbdDeviceInfo struct { ID string `json:"id"` Pool string `json:"pool"` - RadosNamespace string `json:"radosNamespace"` + RadosNamespace string `json:"namespace"` Name string `json:"name"` Device string `json:"device"` } @@ -71,7 +71,7 @@ type rbdDeviceInfo struct { type nbdDeviceInfo struct { ID int64 `json:"id"` Pool string `json:"pool"` - RadosNamespace string `json:"radosNamespace"` + RadosNamespace string `json:"namespace"` Name string `json:"image"` Device string `json:"device"` }