You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/01/05 13:15:58 UTC

[GitHub] kaxil closed pull request #4440: [AIRFLOW-3634] Fix GCP Spanner Test

kaxil closed pull request #4440: [AIRFLOW-3634] Fix GCP Spanner Test
URL: https://github.com/apache/airflow/pull/4440
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/airflow/contrib/operators/gcp_spanner_operator.py b/airflow/contrib/operators/gcp_spanner_operator.py
index 8ea08ea0cf..1cb4c7d47f 100644
--- a/airflow/contrib/operators/gcp_spanner_operator.py
+++ b/airflow/contrib/operators/gcp_spanner_operator.py
@@ -326,10 +326,11 @@ def execute(self, context):
         if not self._hook.get_database(self.project_id,
                                        self.instance_id,
                                        self.database_id):
-            raise AirflowException("The Cloud Spanner database "
-                                   "'%s' in project '%s' and instance '%s' is missing."
-                                   " Create the database first before you can update it.",
-                                   self.database_id, self.project_id, self.instance_id)
+            raise AirflowException("The Cloud Spanner database '{}' in project '{}' and "
+                                   "instance '{}' is missing. Create the database first "
+                                   "before you can update it.".format(self.database_id,
+                                                                      self.project_id,
+                                                                      self.instance_id))
         else:
             return self._hook.update_database(project_id=self.project_id,
                                               instance_id=self.instance_id,


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services