diff --git a/tool/tbot/config/config.go b/tool/tbot/config/config.go index f0bbb0129d393..70d2f2943440d 100644 --- a/tool/tbot/config/config.go +++ b/tool/tbot/config/config.go @@ -277,7 +277,7 @@ func FromCLIConf(cf *CLIConf) (*BotConfig, error) { // (CAPath, CAPins, etc follow different codepaths so we don't want a // situation where different fields become set weirdly due to struct // merging) - if cf.Token != "" || len(cf.CAPins) > 0 || cf.JoinMethod != "" { + if cf.Token != "" || len(cf.CAPins) > 0 || cf.JoinMethod != DefaultJoinMethod { onboarding := config.Onboarding if onboarding != nil && (onboarding.Token != "" || onboarding.CAPath != "" || len(onboarding.CAPins) > 0) || cf.JoinMethod != DefaultJoinMethod { // To be safe, warn about possible confusion.