Skip to content

Commit

Permalink
Merge pull request apache#1145 from airbnb/dag_cli
Browse files Browse the repository at this point in the history
per-DAG specifc CLI & refactoring
  • Loading branch information
mistercrunch committed Mar 23, 2016
2 parents 0a5ef40 + 6a40079 commit aee3cac
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 386 deletions.
4 changes: 2 additions & 2 deletions airflow/bin/airflow
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import logging
import os
from airflow import configuration
from airflow.bin.cli import get_parser
from airflow.bin.cli import CLIFactory

if __name__ == '__main__':

if configuration.get("core", "security") == 'kerberos':
os.environ['KRB5CCNAME'] = configuration.get('kerberos', 'ccache')
os.environ['KRB5_KTNAME'] = configuration.get('kerberos', 'keytab')

parser = get_parser()
parser = CLIFactory.get_parser()
args = parser.parse_args()
args.func(args)
Loading

0 comments on commit aee3cac

Please sign in to comment.