Berislav Lopac created AIRFLOW-2330:
---------------------------------------

             Summary: GoogleCloudStorageToGoogleCloudStorageOperator on 
wildcard appends destination_object even when not given
                 Key: AIRFLOW-2330
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2330
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Berislav Lopac


Currently, the operator builds the destination like this:

{code}
    hook.copy(self.source_bucket, source_object,
              self.destination_bucket, "{}/{}".format(self.destination_object,
                                                      source_object))
{code}

If destination is {{None}} (the default) the file will land in 
{{None/\{source_object\}}}, and if it's an empty string it goes to 
{{/\{source_object\}}}. Basically, it should not prepend {{destination_object}} 
if it's empty.



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

Reply via email to