mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix fleetctl preview bug caused by creating enroll secrets (#19497)
#19129 - [X] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [X] Manual QA for all new/changed functionality
This commit is contained in:
parent
7eb3628fe6
commit
a37d0692b1
2 changed files with 3 additions and 2 deletions
1
changes/19129-fleetctl-preview-enroll-secrets
Normal file
1
changes/19129-fleetctl-preview-enroll-secrets
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Fixed bug in `fleetctl preview` caused by creating enroll secrets.
|
||||
|
|
@ -407,8 +407,8 @@ Use the stop and reset subcommands to manage the server and dependencies once st
|
|||
return fmt.Errorf("Error retrieving enroll secret: %w", err)
|
||||
}
|
||||
|
||||
if len(secrets.Secrets) != 1 {
|
||||
return errors.New("Expected 1 active enroll secret")
|
||||
if len(secrets.Secrets) == 0 {
|
||||
return errors.New("Expected at least one enroll secret")
|
||||
}
|
||||
|
||||
// disable analytics collection for preview
|
||||
|
|
|
|||
Loading…
Reference in a new issue