mirror of
https://github.com/containers/podman.git
synced 2025-12-09 15:19:35 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user