Fix segfaults attribute to missing options

In cases where the remote client culls options to a command, we need to
be sure that the lookup for that flag does not result in a nil pointer.
To do so, we add a Remote attribute to the podman struct and then cli
helper funcs are now aware they are remote.

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude
2019-04-15 09:53:38 -05:00
parent 6e1dab76e2
commit 6fb0a706af
77 changed files with 106 additions and 10 deletions

View File

@@ -22,6 +22,7 @@ var (
RunE: func(cmd *cobra.Command, args []string) error {
podStartCommand.InputArgs = args
podStartCommand.GlobalFlags = MainGlobalOpts
podStartCommand.Remote = remoteclient
return podStartCmd(&podStartCommand)
},
Args: func(cmd *cobra.Command, args []string) error {