Incomplete error message for gitops --delete-other-teams
Fleet version: 4.82.0 Web browser and operating system: N/A
💥 Actual behavior
Running fleetctl gitops --delete-other-teams on with misconfigured configuration results in an error message that is truncated:
🛠️ To fix
Update the error message so the full text is displayed.
🧑💻 Steps to reproduce
These steps:
- [ ] Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
- [x] Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
- Create or modify a GitOps team configuration file (e.g., default.yml) with controls section missing.
- Run:
fleetctl gitops -f /path/to/default.yml --delete-other-teams - Observe the returned error message.
This issue has been automatically tagged as unreleased. If this is is incorrect, you may replace the label with ~released-bug. If this is correct, or might be correct, move this bug onto the appropriate product board to get a fix underway.
QA'd all new/changed functionality manually
- [x] fleetctl gitops -f /path/to/default.yml without controls, gives error: 'controls' must be set on global config, no-team.yml or unassigned.yml
- [x] fleetctl gitops -f /path/to/default.yml with empty controls works
- [x] fleetctl gitops -f /path/to/default.yml -f /path/to/no-team.yml without controls, gives error: 'controls' must be set on global config or no-team.yml
- [x] fleetctl gitops -f /path/to/default.yml -f /path/to/unassigned.yml without controls, gives error: 'controls' must be set on global config or unassigned.yml
- [x] fleetctl gitops -f /path/to/default.yml -f /path/to/no-team.yml with empty controls in no-team.yml works
- [x] fleetctl gitops -f /path/to/default.yml -f /path/to/unassigned.yml with empty controls in unassigned.yml works
- [x] fleetctl gitops -f /path/to/no-team.yml gives error global config must be provided alongside no-team.yml
- [x] fleetctl gitops -f /path/to/no-team.yml gives error global config must be provided alongside unassigned.yml
- [x] fleetctl gitops -f /path/to/some-real-team.yml with no controls works
Clarity in message, Fleet's code now sings truth, full. Ease in every step.