ashb commented on a change in pull request #12889:
URL: https://github.com/apache/airflow/pull/12889#discussion_r537862744
##########
File path: airflow/bin/airflow
##########
@@ -20,18 +20,7 @@
# under the License.
import os
-import argcomplete
+from airflow.bin.cli import cli_main
-from airflow.configuration import conf
-from airflow.bin.cli import CLIFactory
-
-if __name__ == '__main__':
-
- if conf.get("core", "security") == 'kerberos':
- os.environ['KRB5CCNAME'] = conf.get('kerberos', 'ccache')
- os.environ['KRB5_KTNAME'] = conf.get('kerberos', 'keytab')
-
- parser = CLIFactory.get_parser()
- argcomplete.autocomplete(parser)
- args = parser.parse_args()
- args.func(args)
+if __name__ == "__main__":
+ cli_main()
Review comment:
Please ensure files have trailing new lines for consistency.
----------------------------------------------------------------
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:
[email protected]