From 199dcf4327099edd2b63490671921d9041a312a6 Mon Sep 17 00:00:00 2001 From: jonathan meeks Date: Fri, 9 May 2025 09:58:57 -0500 Subject: [PATCH] minor fix: misspelling of identifier in apply schema --- .gitignore | 6 +++++- cmd/ctrlc/root/apply/apply.go | 16 ++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 8f2be29..b1efe2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ .env -test.bash \ No newline at end of file +test.bash + +/bin +.idea +.vscode diff --git a/cmd/ctrlc/root/apply/apply.go b/cmd/ctrlc/root/apply/apply.go index 7a37c67..191a9b5 100644 --- a/cmd/ctrlc/root/apply/apply.go +++ b/cmd/ctrlc/root/apply/apply.go @@ -56,13 +56,13 @@ type ResourceProvider struct { } type Resource struct { - Identifer string `yaml:"identifer"` - Name string `yaml:"name"` - Version string `yaml:"version"` - Kind string `yaml:"kind"` - Config map[string]any `yaml:"config"` - Metadata map[string]string `yaml:"metadata"` - Variables map[string]any `yaml:"variables"` + Identifier string `yaml:"identifier"` + Name string `yaml:"name"` + Version string `yaml:"version"` + Kind string `yaml:"kind"` + Config map[string]any `yaml:"config"` + Metadata map[string]string `yaml:"metadata"` + Variables map[string]any `yaml:"variables"` } // NewApplyCmd creates a new apply command @@ -121,7 +121,7 @@ func processResourceProvider(ctx context.Context, client *api.ClientWithResponse resources := make([]api.AgentResource, 0) for _, resource := range provider.Resources { resources = append(resources, api.AgentResource{ - Identifier: resource.Identifer, + Identifier: resource.Identifier, Name: resource.Name, Version: resource.Version, Kind: resource.Kind,