You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/06/26 09:18:22 UTC

[airflow] branch master updated: Remove kwargs from Super calls in AWS Secrets Backends (#9523)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new c858bab  Remove kwargs from Super calls in AWS Secrets Backends (#9523)
c858bab is described below

commit c858babddf8b18b417993b5bfefec1c5635510da
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Fri Jun 26 10:17:56 2020 +0100

    Remove kwargs from Super calls in AWS Secrets Backends (#9523)
    
    We don't want pass to kwargs to `BaseSecretsBackend` nor `LoggingMixin`
---
 airflow/providers/amazon/aws/secrets/secrets_manager.py | 2 +-
 airflow/providers/amazon/aws/secrets/systems_manager.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow/providers/amazon/aws/secrets/secrets_manager.py b/airflow/providers/amazon/aws/secrets/secrets_manager.py
index e3b7631..6932d8e 100644
--- a/airflow/providers/amazon/aws/secrets/secrets_manager.py
+++ b/airflow/providers/amazon/aws/secrets/secrets_manager.py
@@ -66,7 +66,7 @@ class SecretsManagerBackend(BaseSecretsBackend, LoggingMixin):
         sep: str = "/",
         **kwargs
     ):
-        super().__init__(**kwargs)
+        super().__init__()
         self.connections_prefix = connections_prefix.rstrip("/")
         self.variables_prefix = variables_prefix.rstrip('/')
         self.profile_name = profile_name
diff --git a/airflow/providers/amazon/aws/secrets/systems_manager.py b/airflow/providers/amazon/aws/secrets/systems_manager.py
index 3c11f9c..203be35 100644
--- a/airflow/providers/amazon/aws/secrets/systems_manager.py
+++ b/airflow/providers/amazon/aws/secrets/systems_manager.py
@@ -59,7 +59,7 @@ class SystemsManagerParameterStoreBackend(BaseSecretsBackend, LoggingMixin):
         profile_name: Optional[str] = None,
         **kwargs
     ):
-        super().__init__(**kwargs)
+        super().__init__()
         self.connections_prefix = connections_prefix.rstrip("/")
         self.variables_prefix = variables_prefix.rstrip('/')
         self.profile_name = profile_name