Skip to content

Commit

Permalink
Added some helpful information to allocate output.
Browse files Browse the repository at this point in the history
  • Loading branch information
brett19 committed Dec 1, 2023
1 parent 1c71338 commit d9438aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/allocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ var allocateCmd = &cobra.Command{
logger.Fatal("cluster deployment failed", zap.Error(err))
}

// for humans using dino-cluster, we print some helpful info if available
connectInfo, _ := deployer.GetConnectInfo(ctx, cluster.GetID())
if connectInfo != nil {
logger.Info("cluster deployed",
zap.String("mgmt", connectInfo.Mgmt),
zap.String("connstr", connectInfo.ConnStr))
}

fmt.Printf("%s\n", cluster.GetID())
},
}
Expand Down

0 comments on commit d9438aa

Please sign in to comment.