mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 01:44:43 +01:00
cmd: zfs-abstraction list --json: fix panic
(was panicking because `abstractions` is in fact a channel
This commit is contained in:
parent
8ff83f2f1a
commit
4e702eedc9
@ -63,7 +63,7 @@ func doZabsList(ctx context.Context, sc *cli.Subcommand, args []string) error {
|
|||||||
defer line.Lock().Unlock()
|
defer line.Lock().Unlock()
|
||||||
if zabsListFlags.Json {
|
if zabsListFlags.Json {
|
||||||
enc.SetIndent("", " ")
|
enc.SetIndent("", " ")
|
||||||
if err := enc.Encode(abstractions); err != nil {
|
if err := enc.Encode(a); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
|
Loading…
Reference in New Issue
Block a user