From e17c61678f846d60622e0152d7205edafa1b2943 Mon Sep 17 00:00:00 2001 From: wanyaoqi Date: Tue, 6 Dec 2022 14:04:42 +0800 Subject: [PATCH] fix(host): json ignore etcd and common options --- pkg/hostman/options/options.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/hostman/options/options.go b/pkg/hostman/options/options.go index affcde1973d..3222f092df8 100644 --- a/pkg/hostman/options/options.go +++ b/pkg/hostman/options/options.go @@ -37,9 +37,8 @@ type SHostBaseOptions struct { } type SHostOptions struct { - common_options.EtcdOptions - - SHostBaseOptions + common_options.EtcdOptions `json:"-"` + SHostBaseOptions `json:"-"` CommonConfigFile string `help:"common config file for container"`