Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package azure-cli-core for openSUSE:Factory checked in at 2022-03-09 18:47:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/azure-cli-core (Old) and /work/SRC/openSUSE:Factory/.azure-cli-core.new.2349 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-core" Wed Mar 9 18:47:36 2022 rev:36 rq:960304 version:2.34.1 Changes: -------- --- /work/SRC/openSUSE:Factory/azure-cli-core/azure-cli-core.changes 2022-02-25 21:25:55.387647425 +0100 +++ /work/SRC/openSUSE:Factory/.azure-cli-core.new.2349/azure-cli-core.changes 2022-03-11 11:40:25.958551529 +0100 @@ -1,0 +2,8 @@ +Mon Mar 7 11:03:18 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- New upstream release + + Version 2.34.1 + + For detailed information about changes see the + HISTORY.rst file provided with this package + +------------------------------------------------------------------- Old: ---- azure-cli-core-2.33.1.tar.gz New: ---- azure-cli-core-2.34.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ azure-cli-core.spec ++++++ --- /var/tmp/diff_new_pack.6KT8zB/_old 2022-03-11 11:40:26.394552018 +0100 +++ /var/tmp/diff_new_pack.6KT8zB/_new 2022-03-11 11:40:26.398552022 +0100 @@ -17,7 +17,7 @@ Name: azure-cli-core -Version: 2.33.1 +Version: 2.34.1 Release: 0 Summary: Microsoft Azure CLI Core Module License: MIT ++++++ azure-cli-core-2.33.1.tar.gz -> azure-cli-core-2.34.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/HISTORY.rst new/azure-cli-core-2.34.1/HISTORY.rst --- old/azure-cli-core-2.33.1/HISTORY.rst 2022-02-14 05:00:00.000000000 +0100 +++ new/azure-cli-core-2.34.1/HISTORY.rst 2022-03-02 08:21:30.000000000 +0100 @@ -3,6 +3,14 @@ Release History =============== +2.34.1 +++++++ +* No changes + +2.34.0 +++++++ +* Minor fixes + 2.33.1 ++++++ * No changes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/PKG-INFO new/azure-cli-core-2.34.1/PKG-INFO --- old/azure-cli-core-2.33.1/PKG-INFO 2022-02-14 05:00:11.976788800 +0100 +++ new/azure-cli-core-2.34.1/PKG-INFO 2022-03-02 08:21:46.359761500 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: azure-cli-core -Version: 2.33.1 +Version: 2.34.1 Summary: Microsoft Azure Command-Line Tools Core Module Home-page: https://github.com/Azure/azure-cli Author: Microsoft Corporation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/azure/cli/core/__init__.py new/azure-cli-core-2.34.1/azure/cli/core/__init__.py --- old/azure-cli-core-2.33.1/azure/cli/core/__init__.py 2022-02-14 05:00:00.000000000 +0100 +++ new/azure-cli-core-2.34.1/azure/cli/core/__init__.py 2022-03-02 08:21:30.000000000 +0100 @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- # pylint: disable=line-too-long -__version__ = "2.33.1" +__version__ = "2.34.1" import os import sys diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/azure/cli/core/_profile.py new/azure-cli-core-2.34.1/azure/cli/core/_profile.py --- old/azure-cli-core-2.33.1/azure/cli/core/_profile.py 2022-02-14 05:00:00.000000000 +0100 +++ new/azure-cli-core-2.34.1/azure/cli/core/_profile.py 2022-03-02 08:21:30.000000000 +0100 @@ -643,38 +643,19 @@ def get_sp_auth_info(self, subscription_id=None, name=None, password=None, cert_file=None): """Generate a JSON for --sdk-auth argument when used in: - az ad sp create-for-rbac --sdk-auth - - az account show --sdk-auth """ from collections import OrderedDict account = self.get_subscription(subscription_id) # is the credential created through command like 'create-for-rbac'? result = OrderedDict() - if name and (password or cert_file): - result['clientId'] = name - if password: - result['clientSecret'] = password - else: - result['clientCertificate'] = cert_file - result['subscriptionId'] = subscription_id or account[_SUBSCRIPTION_ID] - else: # has logged in through cli - user_type = account[_USER_ENTITY].get(_USER_TYPE) - if user_type == _SERVICE_PRINCIPAL: - client_id = account[_USER_ENTITY][_USER_NAME] - result['clientId'] = client_id - identity = _create_identity_instance(self.cli_ctx, self._authority, tenant_id=account[_TENANT_ID]) - sp_entry = identity.get_service_principal_entry(client_id) - from .auth.msal_authentication import _CLIENT_SECRET, _CERTIFICATE - secret = sp_entry.get(_CLIENT_SECRET) - if secret: - result['clientSecret'] = secret - else: - # we can output 'clientCertificateThumbprint' if asked - result['clientCertificate'] = sp_entry.get(_CERTIFICATE) - result['subscriptionId'] = account[_SUBSCRIPTION_ID] - else: - raise CLIError('SDK Auth file is only applicable when authenticated using a service principal') + result['clientId'] = name + if password: + result['clientSecret'] = password + else: + result['clientCertificate'] = cert_file + result['subscriptionId'] = subscription_id or account[_SUBSCRIPTION_ID] result[_TENANT_ID] = account[_TENANT_ID] endpoint_mappings = OrderedDict() # use OrderedDict to control the output sequence diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/azure/cli/core/auth/credential_adaptor.py new/azure-cli-core-2.34.1/azure/cli/core/auth/credential_adaptor.py --- old/azure-cli-core-2.33.1/azure/cli/core/auth/credential_adaptor.py 2022-02-14 05:00:00.000000000 +0100 +++ new/azure-cli-core-2.34.1/azure/cli/core/auth/credential_adaptor.py 2022-03-02 08:21:30.000000000 +0100 @@ -56,6 +56,11 @@ def get_token(self, *scopes, **kwargs): logger.debug("CredentialAdaptor.get_token: scopes=%r, kwargs=%r", scopes, kwargs) + + # SDK azure-keyvault-keys 4.5.0b5 passes tenant_id as kwargs, but we don't support tenant_id for now, + # so discard it. + kwargs.pop('tenant_id', None) + scopes = _normalize_scopes(scopes) token, _ = self._get_token(scopes, **kwargs) return token diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/azure/cli/core/auth/identity.py new/azure-cli-core-2.34.1/azure/cli/core/auth/identity.py --- old/azure-cli-core-2.33.1/azure/cli/core/auth/identity.py 2022-02-14 05:00:00.000000000 +0100 +++ new/azure-cli-core-2.34.1/azure/cli/core/auth/identity.py 2022-03-02 08:21:30.000000000 +0100 @@ -159,7 +159,7 @@ def login_with_auth_code(self, scopes, **kwargs): # Emit a warning to inform that a browser is opened. # Only show the path part of the URL and hide the query string. - logger.warning("The default web browser has been opened at %s. Please continue the login in the web browser. " + logger.warning("A web browser has been opened at %s. Please continue the login in the web browser. " "If no web browser is available or if the web browser fails to open, use device code flow " "with `az login --use-device-code`.", self._msal_app.authority.authorization_endpoint) @@ -237,10 +237,6 @@ sp_auth = ServicePrincipalAuth(entry) return ServicePrincipalCredential(sp_auth, **self._msal_app_kwargs) - def get_service_principal_entry(self, client_id): - """This method is only used by --sdk-auth. DO NOT use it elsewhere.""" - return self._service_principal_store.load_entry(client_id, self.tenant_id) - def get_managed_identity_credential(self, client_id=None): raise NotImplementedError diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/azure/cli/core/extension/operations.py new/azure-cli-core-2.34.1/azure/cli/core/extension/operations.py --- old/azure-cli-core-2.33.1/azure/cli/core/extension/operations.py 2022-02-14 05:00:00.000000000 +0100 +++ new/azure-cli-core-2.34.1/azure/cli/core/extension/operations.py 2022-03-02 08:21:30.000000000 +0100 @@ -213,9 +213,6 @@ distname, _ = get_linux_distro() distname = distname.lower().strip() if installer == 'DEB' or any(x in distname for x in ['ubuntu', 'debian']): - from azure.cli.core.util import in_cloud_console - if in_cloud_console(): - raise CLIError("This extension is not supported in Cloud Shell as you do not have permission to install extra dependencies.") exit_code = subprocess.call(['dpkg', '-s', 'gcc', 'libpq-dev', 'python3-dev'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) if exit_code != 0: logger.warning('This extension depends on gcc, libpq-dev, python3-dev and they will be installed first.') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/azure/cli/core/profiles/_shared.py new/azure-cli-core-2.34.1/azure/cli/core/profiles/_shared.py --- old/azure-cli-core-2.33.1/azure/cli/core/profiles/_shared.py 2022-02-14 05:00:00.000000000 +0100 +++ new/azure-cli-core-2.34.1/azure/cli/core/profiles/_shared.py 2022-03-02 08:21:30.000000000 +0100 @@ -69,6 +69,7 @@ MGMT_DATABOXEDGE = ('azure.mgmt.databoxedge', 'DataBoxEdgeManagementClient') MGMT_CUSTOMLOCATION = ('azure.mgmt.extendedlocation', 'CustomLocations') MGMT_CONTAINERSERVICE = ('azure.mgmt.containerservice', 'ContainerServiceClient') + MGMT_SERVICEBUS = ('azure.mgmt.servicebus', 'ServiceBusManagementClient') # the "None" below will stay till a command module fills in the type so "get_mgmt_service_client" # can be provided with "ResourceType.XXX" to initialize the client object. This usually happens # when related commands start to support Multi-API @@ -99,7 +100,6 @@ MGMT_RELAY = ('azure.mgmt.relay', None) MGMT_RESERVATIONS = ('azure.mgmt.reservations', None) MGMT_SEARCH = ('azure.mgmt.search', None) - MGMT_SERVICEBUS = ('azure.mgmt.servicebus', None) MGMT_SERVICEFABRIC = ('azure.mgmt.servicefabric', None) MGMT_SIGNALR = ('azure.mgmt.signalr', None) MGMT_SQL = ('azure.mgmt.sql', None) @@ -143,9 +143,9 @@ AZURE_API_PROFILES = { 'latest': { - ResourceType.MGMT_STORAGE: '2021-06-01', + ResourceType.MGMT_STORAGE: '2021-08-01', ResourceType.MGMT_NETWORK: '2021-05-01', - ResourceType.MGMT_COMPUTE: SDKProfile('2021-07-01', { + ResourceType.MGMT_COMPUTE: SDKProfile('2021-11-01', { 'resource_skus': '2019-04-01', 'disks': '2021-04-01', 'disk_encryption_sets': '2020-12-01', @@ -154,8 +154,10 @@ 'galleries': '2021-07-01', 'gallery_images': '2020-09-30', 'gallery_image_versions': '2021-07-01', + 'gallery_applications': '2021-07-01', + 'gallery_application_versions': '2021-07-01', 'shared_galleries': '2020-09-30', - 'virtual_machine_scale_sets': '2021-07-01', + 'virtual_machine_scale_sets': '2021-11-01', }), ResourceType.MGMT_RESOURCE_FEATURES: '2021-07-01', ResourceType.MGMT_RESOURCE_LINKS: '2016-09-01', @@ -227,17 +229,18 @@ 'private_endpoint_connections': '2019-10-17-preview', 'subscription_diagnostic_settings': '2017-05-01-preview' }), - ResourceType.MGMT_APPSERVICE: '2020-09-01', - ResourceType.MGMT_IOTHUB: '2021-07-01', - ResourceType.MGMT_IOTDPS: '2020-03-01', + ResourceType.MGMT_APPSERVICE: '2021-03-01', + ResourceType.MGMT_IOTHUB: '2021-07-02', + ResourceType.MGMT_IOTDPS: '2021-10-15', ResourceType.MGMT_IOTCENTRAL: '2018-09-01', ResourceType.MGMT_ARO: '2020-04-30', ResourceType.MGMT_DATABOXEDGE: '2021-02-01-preview', ResourceType.MGMT_CUSTOMLOCATION: '2021-03-15-preview', - ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2021-10-01', { + ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2022-01-01', { 'container_services': '2017-07-01', 'open_shift_managed_clusters': '2019-09-30-preview' - }) + }), + ResourceType.MGMT_SERVICEBUS: '2021-06-01-preview' }, '2020-09-01-hybrid': { ResourceType.MGMT_STORAGE: '2019-06-01', @@ -279,6 +282,7 @@ ResourceType.DATA_COSMOS_TABLE: '2017-04-17', ResourceType.MGMT_APPSERVICE: '2018-02-01', ResourceType.MGMT_EVENTHUB: '2021-06-01-preview', + ResourceType.MGMT_SERVICEBUS: '2021-06-01-preview', ResourceType.MGMT_IOTHUB: '2019-07-01-preview', ResourceType.MGMT_DATABOXEDGE: '2019-08-01', ResourceType.MGMT_CONTAINERREGISTRY: '2019-05-01', @@ -323,6 +327,7 @@ # API versions ResourceType.MGMT_APPSERVICE: '2018-02-01', ResourceType.MGMT_EVENTHUB: '2021-06-01-preview', + ResourceType.MGMT_SERVICEBUS: '2021-06-01-preview', ResourceType.MGMT_IOTHUB: '2019-03-22', ResourceType.MGMT_DATABOXEDGE: '2019-08-01' }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/azure_cli_core.egg-info/PKG-INFO new/azure-cli-core-2.34.1/azure_cli_core.egg-info/PKG-INFO --- old/azure-cli-core-2.33.1/azure_cli_core.egg-info/PKG-INFO 2022-02-14 05:00:11.000000000 +0100 +++ new/azure-cli-core-2.34.1/azure_cli_core.egg-info/PKG-INFO 2022-03-02 08:21:46.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: azure-cli-core -Version: 2.33.1 +Version: 2.34.1 Summary: Microsoft Azure Command-Line Tools Core Module Home-page: https://github.com/Azure/azure-cli Author: Microsoft Corporation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/azure-cli-core-2.33.1/setup.py new/azure-cli-core-2.34.1/setup.py --- old/azure-cli-core-2.33.1/setup.py 2022-02-14 05:00:00.000000000 +0100 +++ new/azure-cli-core-2.34.1/setup.py 2022-03-02 08:21:30.000000000 +0100 @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "2.33.1" +VERSION = "2.34.1" # If we have source, validate that our version numbers match # This should prevent uploading releases with mismatched versions.