You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/01 09:43:45 UTC

[GitHub] [airflow] turbaszek commented on a change in pull request #12704: Refactor list rendering in commands

turbaszek commented on a change in pull request #12704:
URL: https://github.com/apache/airflow/pull/12704#discussion_r533237284



##########
File path: airflow/cli/commands/pool_command.py
##########
@@ -60,17 +61,20 @@ def pool_get(args):
 def pool_set(args):
     """Creates new pool with a given name and slots"""
     api_client = get_current_api_client()
-    pools = [api_client.create_pool(name=args.pool, slots=args.slots, description=args.description)]
-    _show_pools(pools=pools, output=args.output)
+    api_client.create_pool(name=args.pool, slots=args.slots, description=args.description)
+    print("Pool created")

Review comment:
       I would like to address this in followup PR. Probably create new decorator that will handle known errors and show only message instead of lines of traceback to make it more user friendly. 




----------------------------------------------------------------
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:
users@infra.apache.org