kaxil commented on a change in pull request #9467:
URL: https://github.com/apache/airflow/pull/9467#discussion_r483854376



##########
File path: airflow/bin/cli.py
##########
@@ -2151,6 +2153,19 @@ def info(args):
         print(info)
 
 
+def upgrade_check(args):
+    if args.save:
+        filename = args.save
+        if not filename.lower().endswith(".json"):
+            print("Only JSON files are supported", file=sys.stderr)
+        formatter = JSONFormatter(args.save)
+    else:
+        formatter = ConsoleFormatter()
+    all_problems = check_upgrade(formatter)
+    if all_problems:
+        exit(1)

Review comment:
       ```suggestion
           sys.exit(1)
   ```




----------------------------------------------------------------
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


Reply via email to