Update against new nodeenrollment registration cache
This commit is contained in:
1 parent
1f550722a2
commit
f6ef708466
4 files changed
+12
-27
No files matched your search
@@ -29,7 +29,7 @@ import (
|
||||
"github.com/hashicorp/boundary/internal/types/scope"
|
||||
"github.com/hashicorp/go-secure-stdlib/parseutil"
|
||||
"github.com/hashicorp/go-secure-stdlib/strutil"
|
||||
"github.com/hashicorp/nodeenrollment/types"
|
||||
"github.com/hashicorp/nodeenrollment"
|
||||
"github.com/mitchellh/cli"
|
||||
"github.com/posener/complete"
|
||||
"go.uber.org/atomic"
|
||||
@@ -689,12 +689,7 @@ func (c *Command) Run(args []string) int {
|
||||
case <-c.Context.Done():
|
||||
return
|
||||
case <-time.After(time.Second):
|
||||
waitingNodes, err := c.controller.NodeeFileStorage.List(c.Context, (*types.NodeInformation)(nil))
|
||||
if err != nil {
|
||||
c.UI.Error(fmt.Errorf("Error listing dev worker for authentication: %w", err).Error())
|
||||
errorEncountered.Store(true)
|
||||
return
|
||||
}
|
||||
waitingNodes := nodeenrollment.DefaultRegistrationCache.Items()
|
||||
if len(waitingNodes) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user