Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Mehrdad Khojastefar <mehrdadkh.uni+github@gmail.com>
  • Loading branch information
mehrdad-khojastefar committed Sep 29, 2023
1 parent a4deab1 commit 4dacd62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions kopf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
from kopf._cogs.structs.reviews import (
WebhookClientConfigService,
WebhookClientConfig,
Operation,
Operation,
Operations,
UserInfo,
Headers,
Expand Down Expand Up @@ -204,7 +204,7 @@
'WebhookClientConfigService',
'WebhookClientConfig',
'Operations',
'Operation',
'Operation',
'UserInfo',
'Headers',
'SSLPeer',
Expand Down
2 changes: 1 addition & 1 deletion kopf/_core/engines/admission.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def build_webhooks(
else (
handler.operation if isinstance(handler.operation,list)
else [handler.operation]
),
),
'scope': '*', # doesn't matter since a specific resource is used.
}
for resource in resources
Expand Down
4 changes: 2 additions & 2 deletions kopf/_core/intents/registries.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ def iter_handlers(
non_mutating = handler.reason != causes.WebhookType.MUTATING
non_deletion = cause.operation != 'DELETE'
explicitly_for_deletion = (
handler.operation == ['DELETE'] or handler.operation == 'DELETE'
)
handler.operation == ['DELETE'] or handler.operation == 'DELETE'
)
if non_mutating or non_deletion or explicitly_for_deletion:
# Filter by usual criteria: labels, annotations, fields, callbacks.
if match(handler=handler, cause=cause):
Expand Down

0 comments on commit 4dacd62

Please sign in to comment.