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-04-28 23:08:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-core (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-core.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-core"

Thu Apr 28 23:08:25 2022 rev:38 rq:973760 version:2.36.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-core/azure-cli-core.changes    
2022-04-17 23:51:43.166461572 +0200
+++ /work/SRC/openSUSE:Factory/.azure-cli-core.new.1538/azure-cli-core.changes  
2022-04-28 23:08:37.108725699 +0200
@@ -1,0 +2,9 @@
+Tue Apr 26 11:03:48 UTC 2022 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- New upstream release
+  + Version 2.36.0
+  + For detailed information about changes see the
+    HISTORY.rst file provided with this package
+- Update Requires from setup.py
+
+-------------------------------------------------------------------

Old:
----
  azure-cli-core-2.35.0.tar.gz

New:
----
  azure-cli-core-2.36.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ azure-cli-core.spec ++++++
--- /var/tmp/diff_new_pack.tRoCqK/_old  2022-04-28 23:08:37.612726169 +0200
+++ /var/tmp/diff_new_pack.tRoCqK/_new  2022-04-28 23:08:37.616726173 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           azure-cli-core
-Version:        2.35.0
+Version:        2.36.0
 Release:        0
 Summary:        Microsoft Azure CLI Core Module
 License:        MIT
@@ -30,7 +30,6 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-azure-nspkg >= 3.0.0
-BuildRequires:  python3-mock
 BuildRequires:  python3-setuptools
 Requires:       azure-cli-nspkg
 Requires:       azure-cli-telemetry >= 1.0.6
@@ -48,8 +47,8 @@
 Requires:       python3-knack >= 0.9.0
 Requires:       python3-msal < 2.0.0
 Requires:       python3-msal >= 1.17.0
-Requires:       python3-msal-extensions < 1.0.0
-Requires:       python3-msal-extensions >= 0.3.1
+Requires:       python3-msal-extensions < 2.0.0
+Requires:       python3-msal-extensions >= 1.0.0
 Requires:       python3-msrestazure < 0.7.0
 Requires:       python3-msrestazure >= 0.6.4
 Requires:       python3-packaging < 22.0

++++++ azure-cli-core-2.35.0.tar.gz -> azure-cli-core-2.36.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.35.0/HISTORY.rst 
new/azure-cli-core-2.36.0/HISTORY.rst
--- old/azure-cli-core-2.35.0/HISTORY.rst       2022-04-01 08:15:32.000000000 
+0200
+++ new/azure-cli-core-2.36.0/HISTORY.rst       2022-04-22 06:52:26.000000000 
+0200
@@ -3,6 +3,10 @@
 Release History
 ===============
 
+2.36.0
+++++++
+* Minor fixes
+
 2.35.0
 ++++++
 * Minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.35.0/PKG-INFO 
new/azure-cli-core-2.36.0/PKG-INFO
--- old/azure-cli-core-2.35.0/PKG-INFO  2022-04-01 08:15:48.030060300 +0200
+++ new/azure-cli-core-2.36.0/PKG-INFO  2022-04-22 06:52:45.414125400 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-cli-core
-Version: 2.35.0
+Version: 2.36.0
 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.35.0/azure/cli/core/__init__.py 
new/azure-cli-core-2.36.0/azure/cli/core/__init__.py
--- old/azure-cli-core-2.35.0/azure/cli/core/__init__.py        2022-04-01 
08:15:32.000000000 +0200
+++ new/azure-cli-core-2.36.0/azure/cli/core/__init__.py        2022-04-22 
06:52:26.000000000 +0200
@@ -4,7 +4,7 @@
 # 
--------------------------------------------------------------------------------------------
 # pylint: disable=line-too-long
 
-__version__ = "2.35.0"
+__version__ = "2.36.0"
 
 import os
 import sys
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.35.0/azure/cli/core/auth/identity.py 
new/azure-cli-core-2.36.0/azure/cli/core/auth/identity.py
--- old/azure-cli-core-2.35.0/azure/cli/core/auth/identity.py   2022-04-01 
08:15:32.000000000 +0200
+++ new/azure-cli-core-2.36.0/azure/cli/core/auth/identity.py   2022-04-22 
06:52:26.000000000 +0200
@@ -22,6 +22,13 @@
 AZURE_CLI_CLIENT_ID = '04b07795-8ddb-461a-bbee-02f9e1bf7b46'
 
 
+# For environment credential
+AZURE_AUTHORITY_HOST = "AZURE_AUTHORITY_HOST"
+AZURE_TENANT_ID = "AZURE_TENANT_ID"
+AZURE_CLIENT_ID = "AZURE_CLIENT_ID"
+AZURE_CLIENT_SECRET = "AZURE_CLIENT_SECRET"
+
+
 logger = get_logger(__name__)
 
 
@@ -346,3 +353,23 @@
         os.remove(path)
     except FileNotFoundError:
         pass
+
+
+def get_environment_credential():
+    # A temporary workaround used by rdbms module to use environment 
credential.
+    # TODO: Integrate with Identity and utilize MSAL HTTP and token cache to 
officially implement
+    #  https://github.com/Azure/azure-cli/issues/10241
+    from os import getenv
+
+    sp_auth = ServicePrincipalAuth({
+        _TENANT: getenv(AZURE_TENANT_ID),
+        _CLIENT_ID: getenv(AZURE_CLIENT_ID),
+        _CLIENT_SECRET: getenv(AZURE_CLIENT_SECRET)
+    })
+
+    authority, _ = _get_authority_url(
+        # Override authority host if defined as env var
+        getenv(AZURE_AUTHORITY_HOST) or 'https://login.microsoftonline.com',
+        getenv(AZURE_TENANT_ID))
+    credentials = ServicePrincipalCredential(sp_auth, authority=authority)
+    return credentials
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.35.0/azure/cli/core/profiles/_shared.py 
new/azure-cli-core-2.36.0/azure/cli/core/profiles/_shared.py
--- old/azure-cli-core-2.35.0/azure/cli/core/profiles/_shared.py        
2022-04-01 08:15:32.000000000 +0200
+++ new/azure-cli-core-2.36.0/azure/cli/core/profiles/_shared.py        
2022-04-22 06:52:26.000000000 +0200
@@ -145,7 +145,7 @@
 
 AZURE_API_PROFILES = {
     'latest': {
-        ResourceType.MGMT_STORAGE: '2021-08-01',
+        ResourceType.MGMT_STORAGE: '2021-09-01',
         ResourceType.MGMT_NETWORK: '2021-05-01',
         ResourceType.MGMT_COMPUTE: SDKProfile('2021-11-01', {
             'resource_skus': '2019-04-01',
@@ -155,7 +155,7 @@
             'snapshots': '2021-12-01',
             'galleries': '2021-07-01',
             'gallery_images': '2021-10-01',
-            'gallery_image_versions': '2021-07-01',
+            'gallery_image_versions': '2021-10-01',
             'gallery_applications': '2021-07-01',
             'gallery_application_versions': '2021-07-01',
             'shared_galleries': '2020-09-30',
@@ -193,7 +193,7 @@
         ResourceType.DATA_KEYVAULT_ADMINISTRATION_ACCESS_CONTROL: 
'7.2-preview',
         ResourceType.DATA_STORAGE: '2018-11-09',
         ResourceType.DATA_STORAGE_BLOB: '2021-04-10',
-        ResourceType.DATA_STORAGE_FILEDATALAKE: '2020-02-10',
+        ResourceType.DATA_STORAGE_FILEDATALAKE: '2020-10-02',
         ResourceType.DATA_STORAGE_FILESHARE: '2019-07-07',
         ResourceType.DATA_STORAGE_QUEUE: '2018-03-28',
         ResourceType.DATA_COSMOS_TABLE: '2017-04-17',
@@ -239,7 +239,7 @@
         ResourceType.MGMT_ARO: '2020-04-30',
         ResourceType.MGMT_DATABOXEDGE: '2021-02-01-preview',
         ResourceType.MGMT_CUSTOMLOCATION: '2021-03-15-preview',
-        ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2022-02-01', {
+        ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2022-03-01', {
             'container_services': '2017-07-01',
             'open_shift_managed_clusters': '2019-09-30-preview'
         }),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.35.0/azure/cli/core/util.py 
new/azure-cli-core-2.36.0/azure/cli/core/util.py
--- old/azure-cli-core-2.35.0/azure/cli/core/util.py    2022-04-01 
08:15:32.000000000 +0200
+++ new/azure-cli-core-2.36.0/azure/cli/core/util.py    2022-04-22 
06:52:26.000000000 +0200
@@ -61,6 +61,7 @@
     from azure.core.exceptions import AzureError
     from requests.exceptions import SSLError, HTTPError
     from azure.cli.core import azclierror
+    from msal_extensions.persistence import PersistenceError
     import traceback
 
     logger.debug("azure.cli.core.util.handle_exception is called with an 
exception:")
@@ -136,6 +137,19 @@
         error_msg = 'Keyboard interrupt is captured.'
         az_error = azclierror.ManualInterrupt(error_msg)
 
+    elif isinstance(ex, PersistenceError):
+        # errno is already in strerror. str(ex) gives duplicated errno.
+        az_error = azclierror.CLIInternalError(ex.strerror)
+        if ex.errno == 0:
+            az_error.set_recommendation(
+                "Please report to us via Github: 
https://github.com/Azure/azure-cli/issues/20278";)
+        elif ex.errno == -2146893813:
+            az_error.set_recommendation(
+                "Please report to us via Github: 
https://github.com/Azure/azure-cli/issues/20231";)
+        elif ex.errno == -2146892987:
+            az_error.set_recommendation(
+                "Please report to us via Github: 
https://github.com/Azure/azure-cli/issues/21010";)
+
     else:
         error_msg = "The command failed with an unexpected error. Here is the 
traceback:"
         az_error = azclierror.CLIInternalError(error_msg)
@@ -1279,6 +1293,10 @@
             import shutil
             shutil.rmtree(path)
             return
+        except FileNotFoundError:
+            # The folder has already been deleted. No further retry is needed.
+            # errno: 2, winerror: 3, strerror: 'The system cannot find the 
path specified'
+            return
         except OSError as err:
             if retry_num > 0:
                 logger.warning("Failed to delete '%s': %s. Retrying ...", 
path, err)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.35.0/azure_cli_core.egg-info/PKG-INFO 
new/azure-cli-core-2.36.0/azure_cli_core.egg-info/PKG-INFO
--- old/azure-cli-core-2.35.0/azure_cli_core.egg-info/PKG-INFO  2022-04-01 
08:15:47.000000000 +0200
+++ new/azure-cli-core-2.36.0/azure_cli_core.egg-info/PKG-INFO  2022-04-22 
06:52:44.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-cli-core
-Version: 2.35.0
+Version: 2.36.0
 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.35.0/azure_cli_core.egg-info/requires.txt 
new/azure-cli-core-2.36.0/azure_cli_core.egg-info/requires.txt
--- old/azure-cli-core-2.35.0/azure_cli_core.egg-info/requires.txt      
2022-04-01 08:15:47.000000000 +0200
+++ new/azure-cli-core-2.36.0/azure_cli_core.egg-info/requires.txt      
2022-04-22 06:52:45.000000000 +0200
@@ -5,7 +5,7 @@
 humanfriendly~=10.0
 jmespath
 knack~=0.9.0
-msal-extensions<0.4,>=0.3.1
+msal-extensions~=1.0.0
 msal<2.0.0,>=1.17.0
 msrestazure~=0.6.4
 packaging<22.0,>=20.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.35.0/setup.py 
new/azure-cli-core-2.36.0/setup.py
--- old/azure-cli-core-2.35.0/setup.py  2022-04-01 08:15:32.000000000 +0200
+++ new/azure-cli-core-2.36.0/setup.py  2022-04-22 06:52:26.000000000 +0200
@@ -8,7 +8,7 @@
 from codecs import open
 from setuptools import setup, find_packages
 
-VERSION = "2.35.0"
+VERSION = "2.36.0"
 
 # If we have source, validate that our version numbers match
 # This should prevent uploading releases with mismatched versions.
@@ -51,7 +51,7 @@
     'humanfriendly~=10.0',
     'jmespath',
     'knack~=0.9.0',
-    'msal-extensions>=0.3.1,<0.4',
+    'msal-extensions~=1.0.0',
     'msal>=1.17.0,<2.0.0',
     'msrestazure~=0.6.4',
     'packaging>=20.9,<22.0',

Reply via email to