Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesouza committed May 14, 2024
1 parent e4e0a1d commit fb0ef5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/discovery-api/discovery_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (cl *DiscoveryClient) GetApiResources() error {
klog.V(2).Infof("Retrieving : %s.%s.%s", g.Resource, g.Version, g.Group)
rs, err := ri.List(context.TODO(), metav1.ListOptions{})
if err != nil {
klog.V(2).Infof("Failed to retrieve: ", g, err)
klog.V(2).Info("Failed to retrieve: ", g, err)
continue
}

Expand Down Expand Up @@ -142,7 +142,7 @@ func (cl *DiscoveryClient) GetApiResources() error {

err := json.Unmarshal([]byte(jsonManifest), &manifest)
if err != nil {
klog.Error("failed to parse 'last-applied-configuration' annotation of resource %s/%s: %s", r.GetNamespace(), r.GetName(), err.Error())
klog.Errorf("failed to parse 'last-applied-configuration' annotation of resource %s/%s: %s", r.GetNamespace(), r.GetName(), err.Error())
continue
}
data, err := json.Marshal(manifest)
Expand Down

0 comments on commit fb0ef5e

Please sign in to comment.