Skip to content

Commit

Permalink
Block Storage: Fix volume show with snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Emmanuel Jacquier <[email protected]>
  • Loading branch information
pierre-emmanuelJ committed Apr 12, 2024
1 parent 7d318e6 commit ef9d5d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/blockstorage_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ func (c *blockStorageShowCmd) cmdRun(cmd *cobra.Command, _ []string) error {
if err != nil {
return err
}
volume, err := volumes.FindBlockStorageVolume(c.Name)
v, err := volumes.FindBlockStorageVolume(c.Name)
if err != nil {
return err
}
volume, err := client.GetBlockStorageVolume(ctx, v.ID)
if err != nil {
return err
}
Expand Down

0 comments on commit ef9d5d7

Please sign in to comment.