diff --git a/pkg/common/cmd/push.go b/pkg/common/cmd/push.go index 0594b4100..4b8cf7b6f 100644 --- a/pkg/common/cmd/push.go +++ b/pkg/common/cmd/push.go @@ -44,10 +44,10 @@ func NewPushRpcCmd() *PushRpcCmd { LocalCacheConfigFileName: &pushConfig.LocalCacheConfig, DiscoveryConfigFilename: &pushConfig.Discovery, } - ret.pushConfig.FcmPath = ret.ConfigPath() - ret.RootCmd = NewRootCmd(program.GetProcessName(), WithConfigMap(ret.configMap)) + ret.pushConfig.FcmConfigPath = ret.ConfigPath() ret.ctx = context.WithValue(context.Background(), "version", config.Version) ret.Command.RunE = func(cmd *cobra.Command, args []string) error { + ret.RootCmd = NewRootCmd(program.GetProcessName(), WithConfigMap(ret.configMap)) return ret.runE() } return ret