mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Fix negative waitgroup error
Signed-off-by: David J. Allen <davidallendj@gmail.com>
This commit is contained in:
parent
c5a6d2a2be
commit
63a8e2a058
1 changed files with 3 additions and 5 deletions
|
|
@ -25,6 +25,9 @@ var collectCmd = &cobra.Command{
|
||||||
l.Log.Errorf("could not get states: %v", err)
|
l.Log.Errorf("could not get states: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if threads <= 0 {
|
||||||
|
threads = mathutil.Clamp(len(probeStates), 1, 255)
|
||||||
|
}
|
||||||
q := &magellan.QueryParams{
|
q := &magellan.QueryParams{
|
||||||
User: user,
|
User: user,
|
||||||
Pass: pass,
|
Pass: pass,
|
||||||
|
|
@ -34,11 +37,6 @@ var collectCmd = &cobra.Command{
|
||||||
Verbose: verbose,
|
Verbose: verbose,
|
||||||
WithSecureTLS: withSecureTLS,
|
WithSecureTLS: withSecureTLS,
|
||||||
}
|
}
|
||||||
|
|
||||||
// scan and store probe data in dbPath
|
|
||||||
if threads <= 0 {
|
|
||||||
threads = mathutil.Clamp(len(probeStates), 1, 255)
|
|
||||||
}
|
|
||||||
magellan.CollectInfo(&probeStates, l, q)
|
magellan.CollectInfo(&probeStates, l, q)
|
||||||
|
|
||||||
// generate custom xnames for bmcs
|
// generate custom xnames for bmcs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue