Skip to content

Commit

Permalink
rbd: fix namespace json parser for xbdDeviceInfo
Browse files Browse the repository at this point in the history
rbd device list --format=json returns namespace as a namespace not radosNamespace

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
  • Loading branch information
clwluvw authored and mergify[bot] committed Jan 5, 2021
1 parent 995879d commit fdec9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/rbd/rbd_attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand All @@ -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"`
}
Expand Down

0 comments on commit fdec9f6

Please sign in to comment.