From 1d131c51b14f8324a3f7a275632764717979ee08 Mon Sep 17 00:00:00 2001 From: artemijspavlovs <19916123+artemijspavlovs@users.noreply.github.com> Date: Fri, 22 Nov 2024 18:16:21 +0700 Subject: [PATCH] fix(eibc): init should prompt for hub info when roller hubid is empty --- cmd/eibc/init/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/eibc/init/init.go b/cmd/eibc/init/init.go index 4976695f..159b5acf 100644 --- a/cmd/eibc/init/init.go +++ b/cmd/eibc/init/init.go @@ -64,7 +64,8 @@ func Cmd() *cobra.Command { var ki *keys.KeyInfo rollerConfig, err := roller.LoadConfig(rollerHome) - if err != nil || rollerConfig.HubData.ID == consts.MockHubID { + if err != nil || rollerConfig.HubData.ID == consts.MockHubID || + rollerConfig.HubData.ID == "" { pterm.Warning.Println("no roller config found") pterm.Info.Println("initializing for environment")