You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by vi...@apache.org on 2024/09/25 19:54:27 UTC

(airflow) branch main updated: Small fix to AWS AVP cli init script (#42479)

This is an automated email from the ASF dual-hosted git repository.

vincbeck pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 663da777f9 Small fix to AWS AVP cli init script (#42479)
663da777f9 is described below

commit 663da777f9c7261a2c572b5cfc35a9d62722b0fe
Author: Niko Oliveira <on...@amazon.com>
AuthorDate: Wed Sep 25 12:54:19 2024 -0700

    Small fix to AWS AVP cli init script (#42479)
---
 airflow/providers/amazon/aws/auth_manager/cli/avp_commands.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/airflow/providers/amazon/aws/auth_manager/cli/avp_commands.py b/airflow/providers/amazon/aws/auth_manager/cli/avp_commands.py
index 62452b7229..fcd9bddace 100644
--- a/airflow/providers/amazon/aws/auth_manager/cli/avp_commands.py
+++ b/airflow/providers/amazon/aws/auth_manager/cli/avp_commands.py
@@ -18,7 +18,6 @@
 
 from __future__ import annotations
 
-import json
 import logging
 from pathlib import Path
 from typing import TYPE_CHECKING
@@ -64,10 +63,8 @@ def init_avp(args):
         _set_schema(client, policy_store_id, args)
 
     if not args.dry_run:
-        print(
-            "Please set configs below in Airflow configuration under AIRFLOW__AWS_AUTH_MANAGER__<config name>."
-        )
-        print(json.dumps({"avp_policy_store_id": policy_store_id}, indent=4))
+        print("Please set configs below in Airflow configuration:\n")
+        print(f"AIRFLOW__AWS_AUTH_MANAGER__AVP_POLICY_STORE_ID={policy_store_id}\n")
 
 
 @cli_utils.action_cli