2024-07-09 13:14:29 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2024-09-07 11:52:32 +00:00
|
|
|
"isle/bootstrap"
|
2024-07-09 13:14:29 +00:00
|
|
|
)
|
|
|
|
|
2024-09-07 11:52:32 +00:00
|
|
|
func (ctx subCmdCtx) getHosts() ([]bootstrap.Host, error) {
|
2024-11-14 20:49:35 +00:00
|
|
|
res, err := ctx.getDaemonRPC().GetHosts(ctx)
|
2024-07-09 13:14:29 +00:00
|
|
|
if err != nil {
|
2024-09-07 11:52:32 +00:00
|
|
|
return nil, fmt.Errorf("calling GetHosts: %w", err)
|
2024-07-09 13:14:29 +00:00
|
|
|
}
|
|
|
|
return res, nil
|
|
|
|
}
|