You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2026/04/26 20:57:43 UTC

(airflow) branch airflow-ctl/v0-1-test updated: [airflow-ctl-v0-1-test] use existing safe_load function in airflowctl utils to load help texts (#65841) (#65903)

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

potiuk pushed a commit to branch airflow-ctl/v0-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/airflow-ctl/v0-1-test by this push:
     new c22b0906a3f [airflow-ctl-v0-1-test] use existing safe_load function in airflowctl utils to load help texts (#65841) (#65903)
c22b0906a3f is described below

commit c22b0906a3faa08e9c84eb975bb4067984a7e7fb
Author: Bugra Ozturk <bu...@users.noreply.github.com>
AuthorDate: Sun Apr 26 22:57:36 2026 +0200

    [airflow-ctl-v0-1-test] use existing safe_load function in airflowctl utils to load help texts (#65841) (#65903)
    
    (cherry picked from commit ad213e0)
    
    Co-authored-by: Justin Pakzad <11...@users.noreply.github.com>
---
 airflow-ctl/src/airflowctl/ctl/cli_config.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow-ctl/src/airflowctl/ctl/cli_config.py b/airflow-ctl/src/airflowctl/ctl/cli_config.py
index 466ee671b61..c540b939fbf 100755
--- a/airflow-ctl/src/airflowctl/ctl/cli_config.py
+++ b/airflow-ctl/src/airflowctl/ctl/cli_config.py
@@ -35,12 +35,12 @@ from typing import Any, NamedTuple
 
 import httpx
 import rich
-import yaml
 
 import airflowctl.api.datamodels.generated as generated_datamodels
 from airflowctl.api.client import NEW_API_CLIENT, Client, ClientKind, provide_api_client
 from airflowctl.api.operations import BaseOperations, ServerResponseError
 from airflowctl.ctl.console_formatting import AirflowConsole
+from airflowctl.ctl.utils.yaml import safe_load
 from airflowctl.exceptions import (
     AirflowCtlConnectionException,
     AirflowCtlCredentialNotFoundException,
@@ -199,7 +199,7 @@ def _load_help_texts_yaml() -> dict[str, dict[str, str]]:
     """Load the help texts yaml for the auto-generated commands."""
     help_texts_path = Path(__file__).parent / "help_texts.yaml"
     with open(help_texts_path) as yaml_file:
-        help_texts = yaml.safe_load(yaml_file)
+        help_texts = safe_load(yaml_file)
     return help_texts