Hello community, here is the log from the commit of package azure-cli-core for openSUSE:Factory checked in at 2020-01-13 22:20:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/azure-cli-core (Old) and /work/SRC/openSUSE:Factory/.azure-cli-core.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-core" Mon Jan 13 22:20:27 2020 rev:9 rq:764091 version:2.0.79 Changes: -------- --- /work/SRC/openSUSE:Factory/azure-cli-core/azure-cli-core.changes 2019-12-02 11:29:19.770615985 +0100 +++ /work/SRC/openSUSE:Factory/.azure-cli-core.new.6675/azure-cli-core.changes 2020-01-13 22:20:49.626498824 +0100 @@ -1,0 +2,18 @@ +Tue Jan 7 10:52:54 UTC 2020 - John Paul Adrian Glaubitz <[email protected]> + +- New upstream release + + Version 2.0.79 + + For detailed information about changes see the + HISTORY.txt file provided with this package +- Update Requires from setup.py + +------------------------------------------------------------------- +Mon Jan 6 13:30:05 UTC 2020 - John Paul Adrian Glaubitz <[email protected]> + +- New upstream release + + Version 2.0.78 + + For detailed information about changes see the + HISTORY.txt file provided with this package +- Update Requires from setup.py + +------------------------------------------------------------------- Old: ---- azure-cli-core-2.0.77.tar.gz New: ---- azure-cli-core-2.0.79.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ azure-cli-core.spec ++++++ --- /var/tmp/diff_new_pack.rWqxkP/_old 2020-01-13 22:20:50.218499099 +0100 +++ /var/tmp/diff_new_pack.rWqxkP/_new 2020-01-13 22:20:50.222499100 +0100 @@ -1,7 +1,7 @@ # # spec file for package azure-cli-core # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: azure-cli-core -Version: 2.0.77 +Version: 2.0.79 Release: 0 Summary: Microsoft Azure CLI Core Module License: MIT @@ -38,8 +38,8 @@ Requires: python3-adal >= 1.2 Requires: python3-argcomplete < 2.0 Requires: python3-argcomplete >= 1.8 -Requires: python3-azure-mgmt-resource < 5.0 -Requires: python3-azure-mgmt-resource >= 4.0 +Requires: python3-azure-mgmt-resource < 8.0 +Requires: python3-azure-mgmt-resource >= 7.0 Requires: python3-azure-nspkg >= 3.0.0 Requires: python3-colorama >= 0.3.9 Requires: python3-humanfriendly < 5.0 ++++++ azure-cli-core-2.0.77.tar.gz -> azure-cli-core-2.0.79.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/HISTORY.rst new/azure-cli-core-2.0.79/HISTORY.rst --- old/azure-cli-core-2.0.77/HISTORY.rst 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/HISTORY.rst 2020-01-03 08:29:52.000000000 +0100 @@ -3,6 +3,14 @@ Release History =============== +2.0.79 +++++++ +* Fix #11586: `az login` is not recorded in server telemetry + +2.0.78 +++++++ +* Plug in HaTS survey + 2.0.77 ++++++ * Add deprecate message for Python 2.7 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/PKG-INFO new/azure-cli-core-2.0.79/PKG-INFO --- old/azure-cli-core-2.0.77/PKG-INFO 2019-11-22 06:26:47.000000000 +0100 +++ new/azure-cli-core-2.0.79/PKG-INFO 2020-01-03 08:30:01.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: azure-cli-core -Version: 2.0.77 +Version: 2.0.79 Summary: Microsoft Azure Command-Line Tools Core Module Home-page: https://github.com/Azure/azure-cli Author: Microsoft Corporation @@ -15,6 +15,14 @@ Release History =============== + 2.0.79 + ++++++ + * Fix #11586: `az login` is not recorded in server telemetry + + 2.0.78 + ++++++ + * Plug in HaTS survey + 2.0.77 ++++++ * Add deprecate message for Python 2.7 @@ -481,7 +489,6 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure/cli/core/__init__.py new/azure-cli-core-2.0.79/azure/cli/core/__init__.py --- old/azure-cli-core-2.0.77/azure/cli/core/__init__.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure/cli/core/__init__.py 2020-01-03 08:29:52.000000000 +0100 @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- from __future__ import print_function -__version__ = "2.0.77" +__version__ = "2.0.79" import os import sys @@ -85,6 +85,8 @@ def show_version(self): from azure.cli.core.util import get_az_version_string + from azure.cli.core.commands.constants import SURVEY_PROMPT + import colorama ver_string, updates_available = get_az_version_string() print(ver_string) if updates_available == -1: @@ -96,6 +98,10 @@ else: print('Your CLI is up-to-date.') + colorama.init() # This could be removed when knack fix is released + print('\n' + SURVEY_PROMPT) + colorama.deinit() # This could be removed when knack fix is released + def exception_handler(self, ex): # pylint: disable=no-self-use from azure.cli.core.util import handle_exception return handle_exception(ex) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure/cli/core/_help.py new/azure-cli-core-2.0.79/azure/cli/core/_help.py --- old/azure-cli-core-2.0.77/azure/cli/core/_help.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure/cli/core/_help.py 2020-01-03 08:29:52.000000000 +0100 @@ -7,6 +7,7 @@ import argparse from azure.cli.core.commands import ExtensionCommandSource +from azure.cli.core.commands.constants import SURVEY_PROMPT from knack.help import (HelpFile as KnackHelpFile, CommandHelpFile as KnackCommandHelpFile, GroupHelpFile as KnackGroupHelpFile, ArgumentGroupRegistry as KnackArgumentGroupRegistry, @@ -150,6 +151,7 @@ def show_help(self, cli_name, nouns, parser, is_group): self.update_loaders_with_help_file_contents(nouns) super(AzCliHelp, self).show_help(cli_name, nouns, parser, is_group) + print(SURVEY_PROMPT) def _register_help_loaders(self): import azure.cli.core._help_loaders as help_loaders diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure/cli/core/_profile.py new/azure-cli-core-2.0.79/azure/cli/core/_profile.py --- old/azure-cli-core-2.0.77/azure/cli/core/_profile.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure/cli/core/_profile.py 2020-01-03 08:29:52.000000000 +0100 @@ -755,11 +755,13 @@ return arm_client_factory(credentials) from azure.cli.core.profiles._shared import get_client_class from azure.cli.core.profiles import ResourceType, get_api_version - from azure.cli.core._debug import change_ssl_cert_verification + from azure.cli.core.commands.client_factory import configure_common_settings client_type = get_client_class(ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS) api_version = get_api_version(cli_ctx, ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS) - return change_ssl_cert_verification(client_type(credentials, api_version=api_version, - base_url=self.cli_ctx.cloud.endpoints.resource_manager)) + client = client_type(credentials, api_version=api_version, + base_url=self.cli_ctx.cloud.endpoints.resource_manager) + configure_common_settings(cli_ctx, client) + return client self._arm_client_factory = create_arm_client_factory self.tenants = [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure/cli/core/cloud.py new/azure-cli-core-2.0.79/azure/cli/core/cloud.py --- old/azure-cli-core-2.0.77/azure/cli/core/cloud.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure/cli/core/cloud.py 2020-01-03 08:29:52.000000000 +0100 @@ -66,7 +66,9 @@ active_directory_data_lake_resource_id=None, vm_image_alias_doc=None, media_resource_id=None, - ossrdbms_resource_id=None): + ossrdbms_resource_id=None, + log_analytics_resource_id=None, + app_insights_resource_id=None): # Attribute names are significant. They are used when storing/retrieving clouds from config self.management = management self.resource_manager = resource_manager @@ -81,6 +83,8 @@ self.vm_image_alias_doc = vm_image_alias_doc self.media_resource_id = media_resource_id self.ossrdbms_resource_id = ossrdbms_resource_id + self.log_analytics_resource_id = log_analytics_resource_id + self.app_insights_resource_id = app_insights_resource_id def has_endpoint_set(self, endpoint_name): try: @@ -172,7 +176,9 @@ vm_image_alias_doc=arm_dict['vmImageAliasDoc'], # pylint: disable=line-too-long media_resource_id=arm_dict['media'], ossrdbms_resource_id=_get_ossrdbms_resource_id(arm_dict['name']), # pylint: disable=line-too-long # change once ossrdbms_resource_id is available via ARM - active_directory_data_lake_resource_id=arm_dict['activeDirectoryDataLake'] if 'activeDirectoryDataLake' in arm_dict else None), # pylint: disable=line-too-long + active_directory_data_lake_resource_id=arm_dict['activeDirectoryDataLake'] if 'activeDirectoryDataLake' in arm_dict else None, # pylint: disable=line-too-long + app_insights_resource_id=arm_dict['appInsightsResourceId'] if 'appInsightsResourceId' in arm_dict else None, + log_analytics_resource_id=arm_dict['logAnalyticsResourceId'] if 'logAnalyticsResourceId' in arm_dict else None), # pylint: disable=line-too-long suffixes=CloudSuffixes( storage_endpoint=arm_dict['suffixes']['storage'], keyvault_dns=arm_dict['suffixes']['keyVaultDns'], @@ -223,7 +229,9 @@ active_directory_data_lake_resource_id='https://datalake.azure.net/', vm_image_alias_doc='https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json', # pylint: disable=line-too-long media_resource_id='https://rest.media.azure.net', - ossrdbms_resource_id='https://ossrdbms-aad.database.windows.net'), + ossrdbms_resource_id='https://ossrdbms-aad.database.windows.net', + app_insights_resource_id='https://api.applicationinsights.io', + log_analytics_resource_id='https://api.loganalytics.io'), suffixes=CloudSuffixes( storage_endpoint='core.windows.net', keyvault_dns='.vault.azure.net', @@ -246,7 +254,9 @@ microsoft_graph_resource_id='https://microsoftgraph.chinacloudapi.cn', vm_image_alias_doc='https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json', # pylint: disable=line-too-long media_resource_id='https://rest.media.chinacloudapi.cn', - ossrdbms_resource_id='https://ossrdbms-aad.database.chinacloudapi.cn'), + ossrdbms_resource_id='https://ossrdbms-aad.database.chinacloudapi.cn', + app_insights_resource_id='https://api.applicationinsights.azure.cn', + log_analytics_resource_id='https://api.loganalytics.azure.cn'), suffixes=CloudSuffixes( storage_endpoint='core.chinacloudapi.cn', keyvault_dns='.vault.azure.cn', @@ -267,7 +277,9 @@ microsoft_graph_resource_id='https://graph.microsoft.us/', vm_image_alias_doc='https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json', # pylint: disable=line-too-long media_resource_id='https://rest.media.usgovcloudapi.net', - ossrdbms_resource_id='https://ossrdbms-aad.database.usgovcloudapi.net'), + ossrdbms_resource_id='https://ossrdbms-aad.database.usgovcloudapi.net', + app_insights_resource_id='https://api.applicationinsights.us', + log_analytics_resource_id='https://api.loganalytics.us'), suffixes=CloudSuffixes( storage_endpoint='core.usgovcloudapi.net', keyvault_dns='.vault.usgovcloudapi.net', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure/cli/core/commands/__init__.py new/azure-cli-core-2.0.79/azure/cli/core/commands/__init__.py --- old/azure-cli-core-2.0.77/azure/cli/core/commands/__init__.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure/cli/core/commands/__init__.py 2020-01-03 08:29:52.000000000 +0100 @@ -313,7 +313,12 @@ resource_type = resource_type or self.command_kwargs.get('resource_type', None) return self.loader.get_api_version(resource_type=resource_type, operation_group=operation_group) - def supported_api_version(self, resource_type=None, min_api=None, max_api=None, operation_group=None): + def supported_api_version(self, resource_type=None, min_api=None, max_api=None, + operation_group=None, parameter_name=None): + if min_api and parameter_name: + parameter_name = None + if parameter_name is not None and parameter_name in self.arguments: + min_api = self.arguments[parameter_name].type.settings.get('min_api', None) resource_type = resource_type or self.command_kwargs.get('resource_type', None) return self.loader.supported_api_version(resource_type=resource_type, min_api=min_api, max_api=max_api, operation_group=operation_group) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure/cli/core/commands/constants.py new/azure-cli-core-2.0.79/azure/cli/core/commands/constants.py --- old/azure-cli-core-2.0.77/azure/cli/core/commands/constants.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure/cli/core/commands/constants.py 2020-01-03 08:29:52.000000000 +0100 @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- +from colorama import Fore, Style from knack.parser import ARGPARSE_SUPPORTED_KWARGS @@ -29,3 +30,6 @@ DEFAULT_QUERY_TIME_RANGE = 3600000 BLACKLISTED_MODS = ['context', 'shell', 'documentdb', 'component'] + +SURVEY_PROMPT = Fore.YELLOW + Style.BRIGHT + 'Please let us know how we are doing: ' + Fore.BLUE \ + + 'https://aka.ms/clihats' + Style.RESET_ALL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure/cli/core/parser.py new/azure-cli-core-2.0.79/azure/cli/core/parser.py --- old/azure-cli-core-2.0.77/azure/cli/core/parser.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure/cli/core/parser.py 2020-01-03 08:29:52.000000000 +0100 @@ -167,8 +167,12 @@ if action.choices is not None and value not in action.choices: if not self.command_source: # parser has no `command_source`, value is part of command itself - error_msg = "{prog}: '{value}' is not in the '{prog}' command group. See '{prog} --help'.".format( - prog=self.prog, value=value) + extensions_link = 'https://docs.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview' + error_msg = ("{prog}: '{value}' is not in the '{prog}' command group. See '{prog} --help'. " + "If the command is from an extension, " + "please make sure the corresponding extension is installed. " + "To learn more about extensions, please visit " + "{extensions_link}").format(prog=self.prog, value=value, extensions_link=extensions_link) else: # `command_source` indicates command values have been parsed, value is an argument parameter = action.option_strings[0] if action.option_strings else action.dest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure/cli/core/profiles/_shared.py new/azure-cli-core-2.0.79/azure/cli/core/profiles/_shared.py --- old/azure-cli-core-2.0.77/azure/cli/core/profiles/_shared.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure/cli/core/profiles/_shared.py 2020-01-03 08:29:52.000000000 +0100 @@ -123,7 +123,7 @@ AZURE_API_PROFILES = { 'latest': { - ResourceType.MGMT_STORAGE: '2019-04-01', + ResourceType.MGMT_STORAGE: '2019-06-01', ResourceType.MGMT_NETWORK: '2019-09-01', ResourceType.MGMT_COMPUTE: SDKProfile('2019-07-01', { 'resource_skus': '2019-04-01', @@ -134,7 +134,7 @@ ResourceType.MGMT_RESOURCE_FEATURES: '2015-12-01', ResourceType.MGMT_RESOURCE_LINKS: '2016-09-01', ResourceType.MGMT_RESOURCE_LOCKS: '2016-09-01', - ResourceType.MGMT_RESOURCE_POLICY: '2019-06-01', + ResourceType.MGMT_RESOURCE_POLICY: '2019-09-01', ResourceType.MGMT_RESOURCE_RESOURCES: '2019-07-01', ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: '2016-06-01', ResourceType.MGMT_NETWORK_DNS: '2018-05-01', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure/cli/core/util.py new/azure-cli-core-2.0.79/azure/cli/core/util.py --- old/azure-cli-core-2.0.77/azure/cli/core/util.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure/cli/core/util.py 2020-01-03 08:29:52.000000000 +0100 @@ -204,6 +204,19 @@ return version_string, updates_available +def get_az_version_json(): + from azure.cli.core.extension import get_extensions + versions = {'extensions': {}} + + for dist in get_installed_cli_distributions(): + versions[dist.key] = dist.version + extensions = get_extensions() + if extensions: + for ext in extensions: + versions['extensions'][ext.name] = ext.version or 'Unknown' + return versions + + def get_json_object(json_string): """ Loads a JSON string as an object and converts all keys to snake case """ @@ -574,8 +587,12 @@ if not skip_authorization_header and uri.lower().startswith('https://'): if not resource: endpoints = cli_ctx.cloud.endpoints + from azure.cli.core.cloud import CloudEndpointNotSetException for p in [x for x in dir(endpoints) if not x.startswith('_')]: - value = getattr(endpoints, p) + try: + value = getattr(endpoints, p) + except CloudEndpointNotSetException: + continue if isinstance(value, six.string_types) and uri.lower().startswith(value.lower()): resource = value break diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure_cli_core.egg-info/PKG-INFO new/azure-cli-core-2.0.79/azure_cli_core.egg-info/PKG-INFO --- old/azure-cli-core-2.0.77/azure_cli_core.egg-info/PKG-INFO 2019-11-22 06:26:47.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure_cli_core.egg-info/PKG-INFO 2020-01-03 08:30:01.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: azure-cli-core -Version: 2.0.77 +Version: 2.0.79 Summary: Microsoft Azure Command-Line Tools Core Module Home-page: https://github.com/Azure/azure-cli Author: Microsoft Corporation @@ -15,6 +15,14 @@ Release History =============== + 2.0.79 + ++++++ + * Fix #11586: `az login` is not recorded in server telemetry + + 2.0.78 + ++++++ + * Plug in HaTS survey + 2.0.77 ++++++ * Add deprecate message for Python 2.7 @@ -481,7 +489,6 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/azure_cli_core.egg-info/requires.txt new/azure-cli-core-2.0.79/azure_cli_core.egg-info/requires.txt --- old/azure-cli-core-2.0.77/azure_cli_core.egg-info/requires.txt 2019-11-22 06:26:47.000000000 +0100 +++ new/azure-cli-core-2.0.79/azure_cli_core.egg-info/requires.txt 2020-01-03 08:30:01.000000000 +0100 @@ -14,7 +14,7 @@ requests~=2.20 six~=1.12 wheel==0.30.0 -azure-mgmt-resource~=4.0 +azure-mgmt-resource~=6.0 [:python_version<"3.0"] futures diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.0.77/setup.py new/azure-cli-core-2.0.79/setup.py --- old/azure-cli-core-2.0.77/setup.py 2019-11-22 06:26:37.000000000 +0100 +++ new/azure-cli-core-2.0.79/setup.py 2020-01-03 08:29:52.000000000 +0100 @@ -17,7 +17,7 @@ logger.warn("Wheel is not available, disabling bdist_wheel hook") cmdclass = {} -VERSION = "2.0.77" +VERSION = "2.0.79" # If we have source, validate that our version numbers match # This should prevent uploading releases with mismatched versions. try: @@ -45,7 +45,6 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', @@ -70,7 +69,7 @@ 'requests~=2.20', 'six~=1.12', 'wheel==0.30.0', - 'azure-mgmt-resource~=4.0', + 'azure-mgmt-resource~=6.0', ] TESTS_REQUIRE = [
