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

@@ -25,6 +25,7 @@ var (
RunE: func(cmd *cobra.Command, args []string) error {
startCommand.InputArgs = args
startCommand.GlobalFlags = MainGlobalOpts
startCommand.Remote = remoteclient
return startCmd(&startCommand)
},
Example: `podman start --latest