Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unexpected (unused but passed) kwargs to peering routines #712

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

nolar
Copy link
Owner

@nolar nolar commented Mar 10, 2021

The error is:

TypeError: process_peering_event() got an unexpected keyword argument 'resource_indexed'

The kwarg is added in 1.30.0 for indexing, added as unused to all processing routines except the peering, and this was not caught in testing (both in automated and manual) — because the kwargs are unused and the peering is usually disabled in tests to not produce unnecessary logs/steps.

Only affects the operator when the peering is enabled — either explicitly or auto-detected — i.e. when the peering CRDs & CRs are present. Non-peered operators are not affected.

Fixes #710

The error is:

```
TypeError: process_peering_event() got an unexpected keyword argument 'resource_indexed'
```

The kwarg is added in 1.30.0 for indexing, added as unused to all processing routines except the peering, and this was not caught in testing (both in automated and manual) — because the kwargs are unused and the peering is usually disabled in tests to not produce unnecessary logs/steps.

Signed-off-by: Sergey Vasilyev <nolar@nolar.info>
@nolar nolar added the bug Something isn't working label Mar 10, 2021
@nolar nolar enabled auto-merge March 10, 2021 20:24
@nolar nolar changed the title Fix unused but passed kwargs to peering routines Fix unexpected (unused but passed) kwargs to peering routines Mar 10, 2021
@nolar nolar merged commit 484f947 into main Mar 10, 2021
@nolar nolar deleted the fix-peering-kwargs branch March 10, 2021 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: process_peering_event() got an unexpected keyword argument 'resource_indexed'
1 participant