Skip to content

Commit

Permalink
fix(eibc): init should prompt for hub info when roller hubid is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Nov 22, 2024
1 parent 3150e53 commit 1d131c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/eibc/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 1d131c5

Please sign in to comment.