Skip to content

Commit

Permalink
adjust log
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Feb 5, 2025
1 parent c848f91 commit 6c7bda4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ func (t *translator) Translate(_ *confmap.Conf) (component.Config, error) {
case config.Deployment, config.StatefulSet:
return common.GetYamlFileToYamlConfig(cfg, k8sAttributesConfig)
default:
return nil, fmt.Errorf("k8sattributesprocessor is not supported for workload type: %s", workloadType)
return nil, fmt.Errorf("k8sattributesprocessor is not supported for this workload type")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ func TestTranslate(t *testing.T) {
input: map[string]interface{}{},
mode: config.ModeEC2,
kubernetesMode: "",
workloadType: "Unknown",
workloadType: "",
wantErr: fmt.Errorf("k8sattributesprocessor is only supported on kubernetes"),
},
"Unknown": {
input: map[string]interface{}{},
mode: config.ModeEC2,
kubernetesMode: config.ModeEKS,
workloadType: "Unknown",
wantErr: fmt.Errorf("k8sattributesprocessor is not supported for workload type: "),
workloadType: "",
wantErr: fmt.Errorf("k8sattributesprocessor is not supported for this workload type"),
},
}
for name, testCase := range testCases {
Expand Down

0 comments on commit 6c7bda4

Please sign in to comment.