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 2023-09-11 21:22:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-core (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-core.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-core"

Mon Sep 11 21:22:21 2023 rev:56 rq:1110260 version:2.52.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-core/azure-cli-core.changes    
2023-08-17 19:43:54.546830181 +0200
+++ /work/SRC/openSUSE:Factory/.azure-cli-core.new.1766/azure-cli-core.changes  
2023-09-11 21:26:57.955605571 +0200
@@ -1,0 +2,8 @@
+Thu Sep  7 12:25:28 UTC 2023 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- New upstream release
+  + Version 2.52.0
+  + For detailed information about changes see the
+    HISTORY.rst file provided with this package
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ azure-cli-core.spec ++++++
--- /var/tmp/diff_new_pack.J0Ii0z/_old  2023-09-11 21:26:59.215650491 +0200
+++ /var/tmp/diff_new_pack.J0Ii0z/_new  2023-09-11 21:26:59.215650491 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           azure-cli-core
-Version:        2.51.0
+Version:        2.52.0
 Release:        0
 Summary:        Microsoft Azure CLI Core Module
 License:        MIT

++++++ azure-cli-core-2.51.0.tar.gz -> azure-cli-core-2.52.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.51.0/HISTORY.rst 
new/azure-cli-core-2.52.0/HISTORY.rst
--- old/azure-cli-core-2.51.0/HISTORY.rst       2023-07-27 09:10:05.000000000 
+0200
+++ new/azure-cli-core-2.52.0/HISTORY.rst       2023-08-31 11:13:41.000000000 
+0200
@@ -3,6 +3,10 @@
 Release History
 ===============
 
+2.52.0
+++++++
+* `aaz`: Support `configured_default` for `AAZBaseArg` (#27205)
+
 2.51.0
 ++++++
 * `aaz`: Add `--max-items` and `--next-token` for pagination (#26710)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.51.0/PKG-INFO 
new/azure-cli-core-2.52.0/PKG-INFO
--- old/azure-cli-core-2.51.0/PKG-INFO  2023-07-27 09:10:24.651254200 +0200
+++ new/azure-cli-core-2.52.0/PKG-INFO  2023-08-31 11:13:58.660772300 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-cli-core
-Version: 2.51.0
+Version: 2.52.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.51.0/azure/cli/core/__init__.py 
new/azure-cli-core-2.52.0/azure/cli/core/__init__.py
--- old/azure-cli-core-2.51.0/azure/cli/core/__init__.py        2023-07-27 
09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure/cli/core/__init__.py        2023-08-31 
11:13:41.000000000 +0200
@@ -4,7 +4,7 @@
 # 
--------------------------------------------------------------------------------------------
 # pylint: disable=line-too-long
 
-__version__ = "2.51.0"
+__version__ = "2.52.0"
 
 import os
 import sys
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.51.0/azure/cli/core/aaz/_arg.py 
new/azure-cli-core-2.52.0/azure/cli/core/aaz/_arg.py
--- old/azure-cli-core-2.51.0/azure/cli/core/aaz/_arg.py        2023-07-27 
09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure/cli/core/aaz/_arg.py        2023-08-31 
11:13:41.000000000 +0200
@@ -78,7 +78,8 @@
     """Base argument"""
 
     def __init__(self, options=None, required=False, help=None, 
arg_group=None, is_preview=False, is_experimental=False,
-                 id_part=None, default=AAZUndefined, blank=AAZUndefined, 
nullable=False, fmt=None, registered=True):
+                 id_part=None, default=AAZUndefined, blank=AAZUndefined, 
nullable=False, fmt=None, registered=True,
+                 configured_default=None):
         """
 
         :param options: argument optional names.
@@ -94,6 +95,7 @@
         :param nullable: argument can accept `None` as value
         :param fmt: argument format
         :param registered: control whether register argument into command 
display
+        :param configured_default: the key to retrieve the default value from 
cli configuration
         """
         super().__init__(options=options, nullable=nullable)
         self._help = {}  # the key in self._help can be 'name', 
'short-summary', 'long-summary', 'populator-commands'
@@ -114,6 +116,7 @@
         self._blank = blank
         self._fmt = fmt
         self._registered = registered
+        self._configured_default = configured_default
 
     def to_cmd_arg(self, name, **kwargs):
         """ convert AAZArg to CLICommandArgument """
@@ -179,6 +182,9 @@
                 message_func=_get_experimental_arg_message
             )
 
+        if self._configured_default:
+            arg.configured_default = self._configured_default
+
         action = self._build_cmd_action()   # call sub class's implementation 
to build CLICommandArgument action
         if action:
             arg.action = action
@@ -449,11 +455,13 @@
             self, options=('--resource-group', '-g'), id_part='resource_group',
             help="Name of resource group. "
                  "You can configure the default group using `az configure 
--defaults group=<name>`",
+            configured_default='group',
             **kwargs):
         super().__init__(
             options=options,
             id_part=id_part,
             help=help,
+            configured_default=configured_default,
             **kwargs
         )
 
@@ -462,7 +470,6 @@
         from azure.cli.core.local_context import LocalContextAttribute, 
LocalContextAction, ALL
         arg = super().to_cmd_arg(name, **kwargs)
         arg.completer = get_resource_group_completion_list
-        arg.configured_default = 'group'
         arg.local_context_attribute = LocalContextAttribute(
             name='resource_group_name',
             actions=[LocalContextAction.SET, LocalContextAction.GET],
@@ -478,12 +485,14 @@
             help="Location. Values from: `az account list-locations`. "
                  "You can configure the default location using `az configure 
--defaults location=<location>`.",
             fmt=None,
+            configured_default='location',
             **kwargs):
         fmt = fmt or AAZResourceLocationArgFormat()
         super().__init__(
             options=options,
             help=help,
             fmt=fmt,
+            configured_default=configured_default,
             **kwargs
         )
 
@@ -502,7 +511,6 @@
             arg.help = short_summary
 
         arg.completer = get_location_completion_list
-        arg.configured_default = 'location'
         arg.local_context_attribute = LocalContextAttribute(
             name='location',
             actions=[LocalContextAction.SET, LocalContextAction.GET],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.51.0/azure/cli/core/aaz/_command.py 
new/azure-cli-core-2.52.0/azure/cli/core/aaz/_command.py
--- old/azure-cli-core-2.51.0/azure/cli/core/aaz/_command.py    2023-07-27 
09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure/cli/core/aaz/_command.py    2023-08-31 
11:13:41.000000000 +0200
@@ -25,6 +25,7 @@
 from ._poller import AAZLROPoller
 from ._command_ctx import AAZCommandCtx
 from .exceptions import AAZUnknownFieldError, AAZUnregisteredArg
+from .utils import get_aaz_profile_module_name
 
 
 logger = get_logger(__name__)
@@ -408,7 +409,7 @@
 def _get_profile_pkg(aaz_module_name, cloud):
     """ load the profile package of aaz module according to the cloud profile.
     """
-    profile_module_name = cloud.profile.lower().replace('-', '_')
+    profile_module_name = get_aaz_profile_module_name(cloud.profile)
     try:
         return 
importlib.import_module(f'{aaz_module_name}.{profile_module_name}')
     except ModuleNotFoundError:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.51.0/azure/cli/core/aaz/_content_builder.py 
new/azure-cli-core-2.52.0/azure/cli/core/aaz/_content_builder.py
--- old/azure-cli-core-2.51.0/azure/cli/core/aaz/_content_builder.py    
2023-07-27 09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure/cli/core/aaz/_content_builder.py    
2023-08-31 11:13:41.000000000 +0200
@@ -171,10 +171,32 @@
         """Get sub builder by key"""
         if not key or key == '.':
             return self
-        parts = [part for part in key.replace('[', '.[').replace('{', 
'.{').split('.') if part]
+        parts = self._split_key(key)
 
         return self._get(*parts)
 
+    @staticmethod
+    def _split_key(key):
+        parts = []
+        # when discriminator value contains `.` value, like 
`Microsoft.Network/publicIPAddresses` the key.
+        # It will separate the value in several parts.
+        pending_disc_part = None
+        for part in key.replace('[', '.[').replace('{', '.{').split('.'):
+            if pending_disc_part is not None:
+                pending_disc_part += '.' + part
+                if pending_disc_part.endswith("}"):
+                    parts.append(pending_disc_part)
+                    pending_disc_part = None
+                continue
+            if part.startswith("{") and not part.endswith("}"):
+                # value is separated
+                pending_disc_part = part
+                continue
+            if not part:
+                continue
+            parts.append(part)
+        return parts
+
     def _get(self, *key_parts):
         if not key_parts:
             return self
@@ -190,7 +212,8 @@
             sub_builder = self._sub_elements_builder
         elif key_parts[0].startswith('{'):
             # discriminator
-            key, value = key_parts[0][1:-1].split(":")
+            assert key_parts[0].endswith('}'), "Invalid key_parts 
{}".format(key_parts)
+            key, value = key_parts[0][1:-1].split(":", maxsplit=1)
             if key != self._discriminator_prop_name:
                 return None
             sub_builder = self._discriminator_builders.get(value, None)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.51.0/azure/cli/core/aaz/_help.py 
new/azure-cli-core-2.52.0/azure/cli/core/aaz/_help.py
--- old/azure-cli-core-2.51.0/azure/cli/core/aaz/_help.py       2023-07-27 
09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure/cli/core/aaz/_help.py       2023-08-31 
11:13:41.000000000 +0200
@@ -20,7 +20,7 @@
 # pylint: disable=protected-access
 
 shorthand_help_messages = {
-    "show-help": 'Try `??` to show more.',
+    "show-help": 'Try "??" to show more.',
     "short-summary": 'Support shorthand-syntax, json-file and yaml-file.',
     "long-summary": 'See 
https://github.com/Azure/azure-cli/tree/dev/doc/shorthand_syntax.md '
                     'for more about shorthand syntax.'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-core-2.51.0/azure/cli/core/aaz/utils.py 
new/azure-cli-core-2.52.0/azure/cli/core/aaz/utils.py
--- old/azure-cli-core-2.51.0/azure/cli/core/aaz/utils.py       2023-07-27 
09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure/cli/core/aaz/utils.py       2023-08-31 
11:13:41.000000000 +0200
@@ -115,3 +115,11 @@
             target[key] = element
 
     return target
+
+
+def get_aaz_profile_module_name(profile_name):
+    profile_module_name = profile_name.lower().replace('-', '_')
+    if profile_module_name != "latest":
+        # the rest profiles for azure-stack use start with digit number, it's 
not a valid python package name.
+        profile_module_name = "profile_" + profile_module_name
+    return profile_module_name
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.51.0/azure/cli/core/commands/command_operation.py 
new/azure-cli-core-2.52.0/azure/cli/core/commands/command_operation.py
--- old/azure-cli-core-2.51.0/azure/cli/core/commands/command_operation.py      
2023-07-27 09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure/cli/core/commands/command_operation.py      
2023-08-31 11:13:41.000000000 +0200
@@ -166,7 +166,7 @@
         from knack.util import CLIError
         from azure.cli.core.commands import cached_get, cached_put, _is_poller
         from azure.cli.core.util import find_child_item, 
augment_no_wait_handler_args
-        from azure.cli.core.commands.arm import add_usage, remove_usage, 
set_usage,\
+        from azure.cli.core.commands.arm import add_usage, remove_usage, 
set_usage, \
             add_properties, remove_properties, set_properties
 
         self.cmd = command_args.get('cmd')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.51.0/azure/cli/core/profiles/__init__.py 
new/azure-cli-core-2.52.0/azure/cli/core/profiles/__init__.py
--- old/azure-cli-core-2.51.0/azure/cli/core/profiles/__init__.py       
2023-07-27 09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure/cli/core/profiles/__init__.py       
2023-08-31 11:13:41.000000000 +0200
@@ -4,7 +4,7 @@
 # 
--------------------------------------------------------------------------------------------
 
 #  pylint: disable=unused-import
-from azure.cli.core.profiles._shared import AZURE_API_PROFILES, ResourceType, 
CustomResourceType, PROFILE_TYPE,\
+from azure.cli.core.profiles._shared import AZURE_API_PROFILES, ResourceType, 
CustomResourceType, PROFILE_TYPE, \
     SDKProfile, AD_HOC_API_VERSIONS
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-core-2.51.0/azure/cli/core/profiles/_shared.py 
new/azure-cli-core-2.52.0/azure/cli/core/profiles/_shared.py
--- old/azure-cli-core-2.51.0/azure/cli/core/profiles/_shared.py        
2023-07-27 09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure/cli/core/profiles/_shared.py        
2023-08-31 11:13:41.000000000 +0200
@@ -65,11 +65,10 @@
     MGMT_RESOURCE_MANAGEDAPPLICATIONS = 
('azure.mgmt.resource.managedapplications', 'ApplicationClient')
     MGMT_MONITOR = ('azure.mgmt.monitor', 'MonitorManagementClient')
     MGMT_MSI = ('azure.mgmt.msi', 'ManagedServiceIdentityClient')
-    DATA_KEYVAULT = ('azure.keyvault', 'KeyVaultClient')
     DATA_KEYVAULT_CERTIFICATES = ('azure.keyvault.certificates', 
'CertificateClient')
     DATA_KEYVAULT_KEYS = ('azure.keyvault.keys', 'KeyClient')
     DATA_KEYVAULT_SECRETS = ('azure.keyvault.secrets', 'SecretClient')
-    DATA_PRIVATE_KEYVAULT = 
('azure.cli.command_modules.keyvault.vendored_sdks.azure_keyvault_t1', 
'KeyVaultClient')
+    DATA_KEYVAULT = 
('azure.cli.command_modules.keyvault.vendored_sdks.azure_keyvault_t1', 
'KeyVaultClient')
     DATA_KEYVAULT_ADMINISTRATION_BACKUP = ('azure.keyvault.administration', 
'KeyVaultBackupClient')
     DATA_KEYVAULT_ADMINISTRATION_ACCESS_CONTROL = 
('azure.keyvault.administration', 'KeyVaultAccessControlClient')
     DATA_KEYVAULT_ADMINISTRATION_SETTING = ('azure.keyvault.administration', 
'KeyVaultSettingsClient')
@@ -99,10 +98,9 @@
     MGMT_BOTSERVICE = ('azure.mgmt.botservice', None)
     MGMT_CDN = ('azure.mgmt.cdn', None)
     MGMT_COGNITIVESERVICES = ('azure.mgmt.cognitiveservices', None)
-    MGMT_CONSUMPTION = ('azure.mgmt.consumption', None)
     MGMT_CONTAINERINSTANCE = ('azure.mgmt.containerinstance', None)
     MGMT_COSMOSDB = ('azure.mgmt.cosmosdb', None)
-    MGMT_DATALAKE_ANALYTICS = ('azure.mgmt.datalake.analytics', None)
+    MGMT_DATALAKE_ANALYTICS = 
('azure.cli.command_modules.dla.vendored_sdks.azure_mgmt_datalake_analytics', 
None)
     MGMT_DATALAKE_STORE = ('azure.mgmt.datalake.store', None)
     MGMT_DATAMIGRATION = ('azure.mgmt.datamigration', None)
     MGMT_EVENTGRID = ('azure.mgmt.eventgrid', None)
@@ -111,7 +109,6 @@
     MGMT_POLICYINSIGHTS = ('azure.mgmt.policyinsights', None)
     MGMT_RDBMS = ('azure.mgmt.rdbms', None)
     MGMT_REDIS = ('azure.mgmt.redis', None)
-    MGMT_RELAY = ('azure.mgmt.relay', None)
     MGMT_SEARCH = ('azure.mgmt.search', None)
     MGMT_SERVICEFABRIC = ('azure.mgmt.servicefabric', None)
     MGMT_SIGNALR = ('azure.mgmt.signalr', None)
@@ -191,7 +188,7 @@
         ResourceType.MGMT_KEYVAULT: '2023-02-01',
         ResourceType.MGMT_AUTHORIZATION: SDKProfile('2022-04-01', {
             'classic_administrators': '2015-06-01',
-            'role_definitions': '2022-04-01',
+            'role_definitions': '2022-05-01-preview',
             'provider_operations_metadata': '2018-01-01-preview'
         }),
         ResourceType.MGMT_CONTAINERREGISTRY: SDKProfile('2022-02-01-preview', {
@@ -210,7 +207,6 @@
         ResourceType.DATA_KEYVAULT_SECRETS: None,
         ResourceType.DATA_KEYVAULT_ADMINISTRATION_SETTING: None,
         ResourceType.DATA_KEYVAULT: '7.0',
-        ResourceType.DATA_PRIVATE_KEYVAULT: '7.2',
         ResourceType.DATA_KEYVAULT_ADMINISTRATION_BACKUP: '7.4',
         ResourceType.DATA_KEYVAULT_ADMINISTRATION_ACCESS_CONTROL: '7.4',
         ResourceType.DATA_STORAGE: '2018-11-09',
@@ -259,10 +255,10 @@
         ResourceType.MGMT_IOTHUB: '2022-04-30-preview',
         ResourceType.MGMT_IOTDPS: '2021-10-15',
         ResourceType.MGMT_IOTCENTRAL: '2021-11-01-preview',
-        ResourceType.MGMT_ARO: '2022-09-04',
+        ResourceType.MGMT_ARO: '2023-04-01',
         ResourceType.MGMT_DATABOXEDGE: '2021-02-01-preview',
         ResourceType.MGMT_CUSTOMLOCATION: '2021-03-15-preview',
-        ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2023-06-01', {
+        ResourceType.MGMT_CONTAINERSERVICE: SDKProfile('2023-07-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.51.0/azure_cli_core.egg-info/PKG-INFO 
new/azure-cli-core-2.52.0/azure_cli_core.egg-info/PKG-INFO
--- old/azure-cli-core-2.51.0/azure_cli_core.egg-info/PKG-INFO  2023-07-27 
09:10:24.000000000 +0200
+++ new/azure-cli-core-2.52.0/azure_cli_core.egg-info/PKG-INFO  2023-08-31 
11:13:58.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-cli-core
-Version: 2.51.0
+Version: 2.52.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.51.0/setup.py 
new/azure-cli-core-2.52.0/setup.py
--- old/azure-cli-core-2.51.0/setup.py  2023-07-27 09:10:05.000000000 +0200
+++ new/azure-cli-core-2.52.0/setup.py  2023-08-31 11:13:41.000000000 +0200
@@ -8,7 +8,7 @@
 from codecs import open
 from setuptools import setup, find_packages
 
-VERSION = "2.51.0"
+VERSION = "2.52.0"
 
 # If we have source, validate that our version numbers match
 # This should prevent uploading releases with mismatched versions.

Reply via email to