Skip to content

Commit

Permalink
Fix sanity test failure
Browse files Browse the repository at this point in the history
Signed-off-by: Neo2308 <pradha.krishna.cse17@itbhu.ac.in>
  • Loading branch information
Neo2308 committed Sep 7, 2023
1 parent ab1ef41 commit 99d136b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ansible/handler/logging_enqueue_owner.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (e *enqueueRequestForOwner) parseOwnerTypeGroupKind(scheme *runtime.Scheme)
// Expect only 1 kind. If there is more than one kind this is probably an edge case such as ListOptions.
if len(kinds) != 1 {
err := fmt.Errorf("expected exactly 1 kind for OwnerType %T, but found %s kinds", e.ownerType, kinds)
log.Error(nil, "expected exactly 1 kind for OwnerType", "owner type", fmt.Sprintf("%T", e.ownerType), "kinds", kinds)
log.Error(nil, "Expected exactly 1 kind for OwnerType", "owner type", fmt.Sprintf("%T", e.ownerType), "kinds", kinds)
return err
}
// Cache the Group and Kind for the OwnerType
Expand Down

0 comments on commit 99d136b

Please sign in to comment.