spiegel_podman/cmd
Daniel J Walsh 9b1a7894a1 Don't crash when giving bogus format commands
Currently if you give a bogus flag to --format it will crash
the formatter.  With this change we will get a nice error.

podman images --format '{{ bogus }}'
Error: template: list:1: function "bogus" not defined

versus
 /bin/podman.old images --format '{{ bogus }}'
panic: template: list:1: function "bogus" not defined

goroutine 1 [running]:

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

<MH: Fixed compile after cherry pick>

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-07-31 11:42:40 -04:00
..
podman Don't crash when giving bogus format commands 2020-07-31 11:42:40 -04:00