From 9023daba242fa6d0f52f70739ccaa56ba62935a2 Mon Sep 17 00:00:00 2001 From: Igor Postelnik Date: Wed, 17 Mar 2021 09:43:49 -0500 Subject: [PATCH] TUN-3715: Apply input source to the correct context --- cmd/cloudflared/cliutil/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloudflared/cliutil/handler.go b/cmd/cloudflared/cliutil/handler.go index d3cf0038..ad1f0285 100644 --- a/cmd/cloudflared/cliutil/handler.go +++ b/cmd/cloudflared/cliutil/handler.go @@ -47,7 +47,7 @@ func applyConfig(c *cli.Context, inputSource altsrc.InputSourceContext) error { targetFlags := context.Command.Flags if context.Command.Name == "" { // commands that define child subcommands are executed as if they were an app - targetFlags = c.App.Flags + targetFlags = context.App.Flags } if err := altsrc.ApplyInputSourceValues(context, inputSource, targetFlags); err != nil { return err