mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Fix fleetctl get options typo (#2281)
Fixes issue where `fleetctl get options` returns `option` (singular) as `kind` instead of `options` (plural). This would cause `fleetctl apply -f options.yml` to fail on options yaml generated by `fleetctl get options` with this error: `unknown kind "option"`.
This commit is contained in:
parent
09632fb1ed
commit
0cf47bf233
2 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ func specGroupFromBytes(b []byte) (*specGroup, error) {
|
|||
|
||||
var optionSpec *kolide.OptionsSpec
|
||||
if err := yaml.Unmarshal(s.Spec, &optionSpec); err != nil {
|
||||
return nil, errors.Wrap(err, "unmarshaling option spec")
|
||||
return nil, errors.Wrap(err, "unmarshaling options spec")
|
||||
}
|
||||
specs.Options = optionSpec
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ func printPack(c *cli.Context, pack *kolide.PackSpec) error {
|
|||
|
||||
func printOption(c *cli.Context, option *kolide.OptionsSpec) error {
|
||||
spec := specGeneric{
|
||||
Kind: "option",
|
||||
Kind: "options",
|
||||
Version: kolide.ApiVersion,
|
||||
Spec: option,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue