Fokko commented on a change in pull request #6246: [AIRFLOW-5586] Improve CLI
error messaging
URL: https://github.com/apache/airflow/pull/6246#discussion_r330867837
##########
File path: airflow/bin/cli.py
##########
@@ -1376,8 +1376,10 @@ def users_list(args):
def users_create(args):
appbuilder = cached_appbuilder()
role = appbuilder.sm.find_role(args.role)
+ valid_roles = appbuilder.sm.get_all_roles()
Review comment:
Can you move this inside `if` statement where it is used?
----------------------------------------------------------------
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]
With regards,
Apache Git Services