You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2020/12/11 12:00:19 UTC
[airflow] branch v1-10-stable updated: Enable upgrade checker to be
run via `python -m airflow.upgrade.checker` (#13009)
This is an automated email from the ASF dual-hosted git repository.
ash pushed a commit to branch v1-10-stable
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v1-10-stable by this push:
new e67b03b Enable upgrade checker to be run via `python -m airflow.upgrade.checker` (#13009)
e67b03b is described below
commit e67b03ba3baea507917dd40c44b1c3e4b97bef80
Author: Ash Berlin-Taylor <as...@firemirror.com>
AuthorDate: Fri Dec 11 11:58:29 2020 +0000
Enable upgrade checker to be run via `python -m airflow.upgrade.checker` (#13009)
I missed the `if __name__ ...` part previously. Oops
---
airflow/upgrade/checker.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/airflow/upgrade/checker.py b/airflow/upgrade/checker.py
index 363ab5e..16d9e7d 100644
--- a/airflow/upgrade/checker.py
+++ b/airflow/upgrade/checker.py
@@ -95,3 +95,7 @@ def __main__():
register_arguments(parser)
args = parser.parse_args()
args.func(args)
+
+
+if __name__ == "__main__":
+ __main__()