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 06:55:46 UTC

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

XD-DENG commented on a change in pull request #12704:
URL: https://github.com/apache/airflow/pull/12704#discussion_r533107633



##########
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:
       Maybe add `try-except` similar to what you added in `pool_delete`?




----------------------------------------------------------------
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