kaxil commented on a change in pull request #6376: [AIRFLOW-5705] Add secrets backend and support for AWS SSM URL: https://github.com/apache/airflow/pull/6376#discussion_r391745311
########## File path: airflow/configuration.py ########## @@ -304,6 +304,24 @@ def getint(self, section, key, **kwargs): def getfloat(self, section, key, **kwargs): return float(self.get(section, key, **kwargs)) + def getlist(self, section: str, key: str, **kwargs) -> List[str]: + """ + Obtains list of string. + + In the configuration file, the value should be represented as a comma-separated list + + .. code-block:: ini + + [secrets_backend] + class_list = airflow.secrets.environment_variables.EnvironmentVariablesSecretsBackend, airflow.secrets.metastore.MetastoreSecretsBackend + + :return: List of string + :rtype List[str] + """ # noqa: E501 pylint: disable=line-too-long + csv = str(conf.get(section, key, **kwargs)) + values_list = [x.strip() for x in csv.split(',')] + return values_list Review comment: This can be deleted now I think ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services