airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kengo Seki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-2292) Fix docstring for S3Hook.get_wildcard_key
Date Fri, 06 Apr 2018 14:50:00 GMT
Kengo Seki created AIRFLOW-2292:
-----------------------------------

             Summary: Fix docstring for S3Hook.get_wildcard_key
                 Key: AIRFLOW-2292
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2292
             Project: Apache Airflow
          Issue Type: Bug
          Components: docs, Documentation
            Reporter: Kengo Seki


S3Hook.get_wildcard_key's docstring says as follows, but the right name is {{wildcard_key}}.
It's doubly misleading since the pattern must be specified as glob, not regex.

{code:python}
    def get_wildcard_key(self, wildcard_key, bucket_name=None, delimiter=''):
        """
        Returns a boto3.s3.Object object matching the regular expression

        :param regex_key: the path to the key
        :type regex_key: str
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message