mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Minor changes and fixes
This commit is contained in:
parent
488e6f8131
commit
118c12fa14
9 changed files with 40 additions and 38 deletions
|
|
@ -27,7 +27,7 @@ var collectCmd = &cobra.Command{
|
|||
|
||||
// use the found results to query bmc information
|
||||
inventories := [][]byte{}
|
||||
// users := [][]byte{}
|
||||
users := [][]byte{}
|
||||
for _, ps := range probeStates {
|
||||
if !ps.State {
|
||||
continue
|
||||
|
|
@ -65,17 +65,17 @@ var collectCmd = &cobra.Command{
|
|||
inventories = append(inventories, inventory)
|
||||
|
||||
// users
|
||||
// user, err := magellan.QueryUsers(client, &logger, &q)
|
||||
// if err != nil {
|
||||
// l.Errorf("could not query users: %v\n", err)
|
||||
// }
|
||||
user, err := magellan.QueryUsers(client, &logger, &q)
|
||||
if err != nil {
|
||||
l.Errorf("could not query users: %v\n", err)
|
||||
}
|
||||
users = append(users, user)
|
||||
|
||||
// // bios
|
||||
// _, err = magellan.QueryBios(client, &logger, &q)
|
||||
// if err != nil {
|
||||
// l.Errorf("could not query bios: %v\n", err)
|
||||
// }
|
||||
// users = append(users, user)
|
||||
_, err = magellan.QueryBios(client, &logger, &q)
|
||||
if err != nil {
|
||||
l.Errorf("could not query bios: %v\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
// add all endpoints to smd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue