ashb commented on a change in pull request #4174: [AIRFLOW-571] Airflow CLI: 
add gunicorn_config param and refactor webserver cli function
URL: https://github.com/apache/incubator-airflow/pull/4174#discussion_r233817631
 
 

 ##########
 File path: airflow/bin/airflow
 ##########
 @@ -28,5 +28,6 @@ if __name__ == '__main__':
         os.environ['KRB5_KTNAME'] = configuration.conf.get('kerberos', 
'keytab')
 
     parser = CLIFactory.get_parser()
-    args = parser.parse_args()
-    args.func(args)
+    args = parser.parse_known_args()
+    args[0].__setattr__('gunicorn_config', args[1])
 
 Review comment:
   Do you need to use `__setattr__` here? would `args[0].gunicorn_config = 
args[1]` not do the same, or is the Namespace object being difficult on us?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to