From 4686c45171c79a89ff3a38cd6a8e92ce6372faf1 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Mon, 27 Apr 2026 14:18:18 +0000 Subject: [PATCH] fix: show cicd version is available message only for deploy command --- .changes/unreleased/fixed-20260427-141642.yaml | 6 ++++++ .../commands/fs/deploy/fab_fs_deploy_config_file.py | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/fixed-20260427-141642.yaml diff --git a/.changes/unreleased/fixed-20260427-141642.yaml b/.changes/unreleased/fixed-20260427-141642.yaml new file mode 100644 index 000000000..51504e940 --- /dev/null +++ b/.changes/unreleased/fixed-20260427-141642.yaml @@ -0,0 +1,6 @@ +kind: fixed +body: Show "New cicd version available" message only for deploy command +time: 2026-04-27T14:16:42.598478256Z +custom: + Author: aviatco + AuthorLink: https://github.com/aviatco diff --git a/src/fabric_cli/commands/fs/deploy/fab_fs_deploy_config_file.py b/src/fabric_cli/commands/fs/deploy/fab_fs_deploy_config_file.py index 4e73b4127..13058e6a2 100644 --- a/src/fabric_cli/commands/fs/deploy/fab_fs_deploy_config_file.py +++ b/src/fabric_cli/commands/fs/deploy/fab_fs_deploy_config_file.py @@ -4,8 +4,6 @@ import json from argparse import Namespace -from fabric_cicd import append_feature_flag, configure_external_file_logging, deploy_with_config, disable_file_logging # type: ignore - from fabric_cli.core import fab_constant, fab_state_config from fabric_cli.core import fab_logger from fabric_cli.core.fab_exceptions import FabricCLIError @@ -16,6 +14,7 @@ def deploy_with_config_file(args: Namespace) -> None: """deploy fabric items to a workspace using a configuration file and target environment - delegates to CICD library.""" + from fabric_cicd import append_feature_flag, configure_external_file_logging, deploy_with_config, disable_file_logging # type: ignore try: if fab_state_config.get_config(fab_constant.FAB_DEBUG_ENABLED) == "true":