Skip to content

Commit 78ae7c0

Browse files
authored
{Upgrade} Remove auto-upgrade message (#31295)
1 parent ad3176b commit 78ae7c0

File tree

1 file changed

+1
-4
lines changed
  • src/azure-cli/azure/cli/command_modules/util

1 file changed

+1
-4
lines changed

src/azure-cli/azure/cli/command_modules/util/custom.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ def upgrade_version(cmd, update_all=None, yes=None, allow_preview=None): # pyli
182182
except Exception as ex: # pylint: disable=broad-except
183183
msg = "Extension {} update failed during az upgrade. {}".format(ext_name, str(ex))
184184
raise CLIError(msg)
185-
auto_upgrade_msg = "You can enable auto-upgrade with 'az config set auto-upgrade.enable=yes'. " \
186-
"More details in https://learn.microsoft.com/cli/azure/update-azure-cli#automatic-update"
187-
logger.warning("Upgrade finished.%s", "" if cmd.cli_ctx.config.getboolean('auto-upgrade', 'enable', False)
188-
else auto_upgrade_msg)
185+
logger.warning("Upgrade finished.")
189186

190187

191188
def _upgrade_on_windows():

0 commit comments

Comments
 (0)