forked from pool/azure-cli-core
Dirk Mueller
cc1c1333f0
- New upstream release + Version 2.40.0 + For detailed information about changes see the HISTORY.rst file provided with this package - Refresh patches for new version + acc_disable-update-check.patch + acc_update-argcomplete.patch - Update Requires from setup.py OBS-URL: https://build.opensuse.org/request/show/1004082 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/azure-cli-core?expand=0&rev=91
25 lines
1.3 KiB
Diff
25 lines
1.3 KiB
Diff
diff -Nru azure-cli-core-2.40.0.orig/azure/cli/core/util.py azure-cli-core-2.40.0/azure/cli/core/util.py
|
|
--- azure-cli-core-2.40.0.orig/azure/cli/core/util.py 2022-09-02 07:40:04.000000000 +0200
|
|
+++ azure-cli-core-2.40.0/azure/cli/core/util.py 2022-09-16 11:13:11.938223294 +0200
|
|
@@ -485,19 +485,7 @@
|
|
|
|
|
|
def show_updates(updates_available_components, only_show_when_updates_available=False):
|
|
- if updates_available_components is None:
|
|
- if not only_show_when_updates_available:
|
|
- logger.warning('Unable to check if your CLI is up-to-date. Check your internet connection.')
|
|
- elif updates_available_components: # pylint: disable=too-many-nested-blocks
|
|
- if in_cloud_console():
|
|
- warning_msg = 'You have %i update(s) available. They will be updated with the next build of Cloud Shell.'
|
|
- else:
|
|
- warning_msg = "You have %i update(s) available."
|
|
- if CLI_PACKAGE_NAME in updates_available_components:
|
|
- warning_msg = "{} Consider updating your CLI installation with 'az upgrade'".format(warning_msg)
|
|
- logger.warning(warning_msg, len(updates_available_components))
|
|
- elif not only_show_when_updates_available:
|
|
- print('Your CLI is up-to-date.')
|
|
+ return
|
|
|
|
|
|
def get_json_object(json_string):
|