cmd/ctr: info marshal Container proto struct
Marshaling Container interface resulted in empty json. Use Container proto struct to get proper container attributes. Signed-off-by: Sunny Gogoi <me@darkowlzz.space>
This commit is contained in:
parent
b9fb2793a8
commit
99461053f3
@ -31,7 +31,7 @@ var infoCommand = cli.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
cjson, err := json.MarshalIndent(container, "", " ")
|
cjson, err := json.MarshalIndent(container.Proto(), "", " ")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user