diff --git a/tests/rptest/services/redpanda.py b/tests/rptest/services/redpanda.py index 2a80c5aab487a..ca57244d66b04 100644 --- a/tests/rptest/services/redpanda.py +++ b/tests/rptest/services/redpanda.py @@ -670,8 +670,8 @@ def __init__(self): # sasl is required def sasl_enabled(self): return (self.kafka_enable_authorization is None and self.enable_sasl - and self.endpoint_authn_method - is None) or self.endpoint_authn_method == "sasl" + and self.endpoint_authn_method is None + ) or self.endpoint_authn_method == "sasl" # principal is extracted from mtls distinguished name def mtls_identity_enabled(self): @@ -2401,10 +2401,8 @@ def set_cluster_config(self, admin_client = self._admin patch_result = admin_client.patch_cluster_config( - upsert={ - k: v - for k, v in values.items() if v is not None - }, + upsert={k: v + for k, v in values.items() if v is not None}, remove=[k for k, v in values.items() if v is None]) new_version = patch_result['config_version']