Skip to content
Snippets Groups Projects
Commit 89671eba authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

made single use command line wait for node registrations to complete

parent 0887517f
No related branches found
No related tags found
1 merge request!53Release
......@@ -88,6 +88,19 @@ var singleCmd = &cobra.Command{
if err != nil {
jww.FATAL.Panicf("Could not add single use process: %+v", err)
}
for numReg, total := 1,100; numReg < total; {
time.Sleep(1 * time.Second)
numReg, total, err = client.GetNodeRegistrationStatus()
if err != nil {
jww.FATAL.Panicf("%+v", err)
}
jww.INFO.Printf("Registering with nodes (%d/%d)...",
numReg, total)
}
timeout := viper.GetDuration("timeout")
// If the send flag is set, then send a message
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment