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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user