Hello community,

here is the log from the commit of package azure-cli-redis for openSUSE:Factory 
checked in at 2018-02-14 09:31:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-redis (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-redis.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-redis"

Wed Feb 14 09:31:42 2018 rev:2 rq:574822 version:0.2.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-redis/azure-cli-redis.changes  
2017-11-10 14:54:46.381773363 +0100
+++ /work/SRC/openSUSE:Factory/.azure-cli-redis.new/azure-cli-redis.changes     
2018-02-14 09:31:43.267264539 +0100
@@ -1,0 +2,9 @@
+Thu Feb  8 13:39:02 UTC 2018 - adrian.glaub...@suse.com
+
+- New upstream release
+  + Version 0.2.11
+  + For detailed information about changes see the
+    HISTORY.rst file provided with this package
+- Install HISTORY.rst into doc directory
+
+-------------------------------------------------------------------

Old:
----
  azure-cli-redis-0.2.9.tar.gz

New:
----
  azure-cli-redis-0.2.11.tar.gz

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

Other differences:
------------------
++++++ azure-cli-redis.spec ++++++
--- /var/tmp/diff_new_pack.SdzJ3I/_old  2018-02-14 09:31:44.075235261 +0100
+++ /var/tmp/diff_new_pack.SdzJ3I/_new  2018-02-14 09:31:44.083234971 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package azure-cli-redis
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,8 +15,9 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:           azure-cli-redis
-Version:        0.2.9
+Version:        0.2.11
 Release:        0
 Summary:        Microsoft Azure CLI 'redis' Command Module
 License:        MIT
@@ -24,17 +25,17 @@
 Url:            https://github.com/Azure/azure-cli
 Source:         
https://files.pythonhosted.org/packages/source/a/azure-cli-redis/azure-cli-redis-%{version}.tar.gz
 Source1:        LICENSE.txt
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-BuildRequires:  unzip
 BuildRequires:  azure-cli-command-modules-nspkg
 BuildRequires:  azure-cli-nspkg
 BuildRequires:  python3-azure-nspkg
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  unzip
 Requires:       azure-cli-command-modules-nspkg
+Requires:       azure-cli-core
 Requires:       azure-cli-nspkg
-Requires:       python3-azure-nspkg
 Requires:       python3-azure-mgmt-redis >= 4.1.0
-Requires:       azure-cli-core
+Requires:       python3-azure-nspkg
 Conflicts:      azure-cli < 2.0.0
 
 BuildArch:      noarch
@@ -63,7 +64,8 @@
 
 %files
 %defattr(-,root,root,-)
-%doc LICENSE.txt README.rst
+%doc HISTORY.rst LICENSE.txt README.rst
 %{python3_sitelib}/azure/cli/command_modules/redis
 %{python3_sitelib}/azure_cli_redis-*.egg-info
+
 %changelog

++++++ azure-cli-redis-0.2.9.tar.gz -> azure-cli-redis-0.2.11.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-redis-0.2.9/HISTORY.rst 
new/azure-cli-redis-0.2.11/HISTORY.rst
--- old/azure-cli-redis-0.2.9/HISTORY.rst       2017-09-23 01:47:00.000000000 
+0200
+++ new/azure-cli-redis-0.2.11/HISTORY.rst      2018-01-05 22:11:35.000000000 
+0100
@@ -2,6 +2,15 @@
 
 Release History
 ===============
+
+0.2.11
+++++++
+* Update for CLI core changes.
+
+0.2.10
+++++++
+* minor fixes
+
 0.2.9 (2017-09-22)
 ++++++++++++++++++
 * minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-redis-0.2.9/PKG-INFO 
new/azure-cli-redis-0.2.11/PKG-INFO
--- old/azure-cli-redis-0.2.9/PKG-INFO  2017-09-23 01:47:30.000000000 +0200
+++ new/azure-cli-redis-0.2.11/PKG-INFO 2018-01-05 22:12:35.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: azure-cli-redis
-Version: 0.2.9
+Version: 0.2.11
 Summary: Microsoft Azure Command-Line Tools Redis Command Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
@@ -20,6 +20,15 @@
         
         Release History
         ===============
+        
+        0.2.11
+        ++++++
+        * Update for CLI core changes.
+        
+        0.2.10
+        ++++++
+        * minor fixes
+        
         0.2.9 (2017-09-22)
         ++++++++++++++++++
         * minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/__init__.py 
new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/__init__.py
--- old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/__init__.py       
2017-09-23 01:47:00.000000000 +0200
+++ new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/__init__.py      
2018-01-05 22:11:35.000000000 +0100
@@ -3,12 +3,31 @@
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
 # 
--------------------------------------------------------------------------------------------
 
-import azure.cli.command_modules.redis._help  # pylint: disable=unused-import
+from azure.cli.core import AzCommandsLoader
 
+from azure.cli.command_modules.redis._help import helps  # pylint: 
disable=unused-import
 
-def load_params(_):
-    import azure.cli.command_modules.redis._params  # pylint: 
disable=redefined-outer-name, unused-variable
 
+class RedisCommandsLoader(AzCommandsLoader):
 
-def load_commands():
-    import azure.cli.command_modules.redis.commands  # pylint: 
disable=redefined-outer-name, unused-variable
+    def __init__(self, cli_ctx=None):
+        from azure.cli.core.commands import CliCommandType
+        from azure.cli.command_modules.redis._client_factory import cf_redis
+        redis_custom = CliCommandType(
+            operations_tmpl='azure.cli.command_modules.redis.custom#{}',
+            client_factory=cf_redis)
+        super(RedisCommandsLoader, self).__init__(cli_ctx=cli_ctx,
+                                                  
min_profile='2017-03-10-profile',
+                                                  
custom_command_type=redis_custom)
+
+    def load_command_table(self, args):
+        from azure.cli.command_modules.redis.commands import load_command_table
+        load_command_table(self, args)
+        return self.command_table
+
+    def load_arguments(self, command):
+        from azure.cli.command_modules.redis._params import load_arguments
+        load_arguments(self, command)
+
+
+COMMAND_LOADER_CLS = RedisCommandsLoader
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/_client_factory.py 
new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/_client_factory.py
--- 
old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/_client_factory.py    
    2017-09-23 01:47:00.000000000 +0200
+++ 
new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/_client_factory.py   
    2018-01-05 22:11:35.000000000 +0100
@@ -4,13 +4,13 @@
 # 
--------------------------------------------------------------------------------------------
 
 
-def cf_redis(_):
+def cf_redis(cli_ctx, _):
     from azure.cli.core.commands.client_factory import get_mgmt_service_client
     from azure.mgmt.redis import RedisManagementClient
-    return get_mgmt_service_client(RedisManagementClient).redis
+    return get_mgmt_service_client(cli_ctx, RedisManagementClient).redis
 
 
-def cf_patch_schedules(_):
+def cf_patch_schedules(cli_ctx, _):
     from azure.cli.core.commands.client_factory import get_mgmt_service_client
     from azure.mgmt.redis import RedisManagementClient
-    return get_mgmt_service_client(RedisManagementClient).patch_schedules
+    return get_mgmt_service_client(cli_ctx, 
RedisManagementClient).patch_schedules
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/_help.py 
new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/_help.py
--- old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/_help.py  
2017-09-23 01:47:00.000000000 +0200
+++ new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/_help.py 
2018-01-05 22:11:35.000000000 +0100
@@ -3,7 +3,7 @@
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
 # 
--------------------------------------------------------------------------------------------
 
-from azure.cli.core.help_files import helps  # pylint: disable=unused-import
+from knack.help_files import helps  # pylint: disable=unused-import
 
 
 helps['redis'] = """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/_params.py 
new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/_params.py
--- old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/_params.py        
2017-09-23 01:47:00.000000000 +0200
+++ new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/_params.py       
2018-01-05 22:11:35.000000000 +0100
@@ -3,64 +3,36 @@
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
 # 
--------------------------------------------------------------------------------------------
 
-from azure.cli.core.commands.parameters import (
-    get_resource_name_completion_list,
-    enum_choice_list,
-    name_type)
-from azure.cli.core.util import shell_safe_json_parse
-from azure.cli.core.commands import register_cli_argument
-import azure.cli.core.commands.arm  # pylint: disable=unused-import
-from azure.mgmt.redis.models.redis_management_client_enums import (
-    RebootType,
-    RedisKeyType,
-    SkuName)
-
-from azure.mgmt.redis.models import (
-    ScheduleEntry,
-)
-
-
-class JsonString(dict):
-    def __init__(self, value):
-        super(JsonString, self).__init__()
-        if value[0] in ("'", '"') and value[-1] == value[0]:
-            # Remove leading and trailing quotes for dos/cmd.exe users
-            value = value[1:-1]
-        dictval = shell_safe_json_parse(value)
-        self.update(dictval)
-
-
-class ScheduleEntryList(list):
-    def __init__(self, value):
-        super(ScheduleEntryList, self).__init__()
-        if value[0] in ("'", '"') and value[-1] == value[0]:
-            # Remove leading and trailing quotes for dos/cmd.exe users
-            value = value[1:-1]
-        dictval = shell_safe_json_parse(value)
-        self.extend([ScheduleEntry(row['dayOfWeek'],
-                                   int(row['startHourUtc']),
-                                   row.get('maintenanceWindow', None)) for row 
in dictval])
-
-
-register_cli_argument('redis', 'name', arg_type=name_type, help='Name of the 
redis cache.',
-                      
completer=get_resource_name_completion_list('Microsoft.Cache/redis'),
-                      id_part='name')
-register_cli_argument('redis', 'redis_configuration', type=JsonString)
-register_cli_argument('redis', 'reboot_type', **enum_choice_list(RebootType))
-register_cli_argument('redis', 'key_type', **enum_choice_list(RedisKeyType))
-register_cli_argument('redis', 'shard_id', type=int)
-register_cli_argument('redis', 'sku', **enum_choice_list(SkuName))
-register_cli_argument('redis', 'vm_size',
-                      help='Size of redis cache to deploy. '
-                           'Example : values for C family (C0, C1, C2, C3, C4, 
C5, C6). '
-                           'For P family (P1, P2, P3, P4)')
-register_cli_argument('redis', 'enable_non_ssl_port', action='store_true')
-register_cli_argument('redis', 'shard_count', type=int)
-register_cli_argument('redis', 'subnet_id')
+# pylint: disable=line-too-long
 
-register_cli_argument('redis import-method', 'files', nargs='+')
+from azure.cli.core.commands.parameters import 
get_resource_name_completion_list, name_type
+import azure.cli.command_modules.redis._help  # pylint: disable=unused-import
+from azure.cli.command_modules.redis._validators import JsonString, 
ScheduleEntryList
 
-register_cli_argument('redis patch-schedule set', 'schedule_entries', 
type=ScheduleEntryList)
+from azure.mgmt.redis.models.redis_management_client_enums import RebootType, 
RedisKeyType, SkuName
 
-register_cli_argument('redis create', 'name', arg_type=name_type, 
completer=None)
-register_cli_argument('redis create', 'tenant_settings', type=JsonString)
+from azure.cli.core.commands.parameters import get_enum_type  # TODO: Move 
this into Knack
+
+
+def load_arguments(self, _):
+
+    with self.argument_context('redis') as c:
+        c.argument('name', options_list=['--name', '-n'], help='Name of the 
redis cache.', 
completer=get_resource_name_completion_list('Microsoft.Cache/redis'))
+        c.argument('redis_configuration', type=JsonString)
+        c.argument('reboot_type', arg_type=get_enum_type(RebootType))
+        c.argument('key_type', arg_type=get_enum_type(RedisKeyType))
+        c.argument('shard_id', type=int)
+        c.argument('sku', arg_type=get_enum_type(SkuName))
+        c.argument('vm_size', help='Size of redis cache to deploy. Example : 
values for C family (C0, C1, C2, C3, C4, C5, C6). For P family (P1, P2, P3, 
P4)')
+        c.argument('enable_non_ssl_port', action='store_true')
+        c.argument('shard_count', type=int)
+
+    with self.argument_context('redis import-method') as c:
+        c.argument('files', nargs='+')
+
+    with self.argument_context('redis patch-schedule set') as c:
+        c.argument('schedule_entries', type=ScheduleEntryList)
+
+    with self.argument_context('redis create') as c:
+        c.argument('name', arg_type=name_type, completer=None)
+        c.argument('tenant_settings', type=JsonString)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/_validators.py 
new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/_validators.py
--- old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/_validators.py    
1970-01-01 01:00:00.000000000 +0100
+++ new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/_validators.py   
2018-01-05 22:11:35.000000000 +0100
@@ -0,0 +1,29 @@
+# 
--------------------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for 
license information.
+# 
--------------------------------------------------------------------------------------------
+
+from azure.cli.core.util import shell_safe_json_parse
+from azure.mgmt.redis.models import ScheduleEntry
+
+
+class JsonString(dict):
+    def __init__(self, value):
+        super(JsonString, self).__init__()
+        if value[0] in ("'", '"') and value[-1] == value[0]:
+            # Remove leading and trailing quotes for dos/cmd.exe users
+            value = value[1:-1]
+        dictval = shell_safe_json_parse(value)
+        self.update(dictval)
+
+
+class ScheduleEntryList(list):
+    def __init__(self, value):
+        super(ScheduleEntryList, self).__init__()
+        if value[0] in ("'", '"') and value[-1] == value[0]:
+            # Remove leading and trailing quotes for dos/cmd.exe users
+            value = value[1:-1]
+        dictval = shell_safe_json_parse(value)
+        self.extend([ScheduleEntry(row['dayOfWeek'],
+                                   int(row['startHourUtc']),
+                                   row.get('maintenanceWindow', None)) for row 
in dictval])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/commands.py 
new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/commands.py
--- old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/commands.py       
2017-09-23 01:47:00.000000000 +0200
+++ new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/commands.py      
2018-01-05 22:11:35.000000000 +0100
@@ -3,41 +3,39 @@
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
 # 
--------------------------------------------------------------------------------------------
 
-from azure.cli.core.commands import cli_command
-from azure.cli.core.commands.arm import cli_generic_update_command
-from azure.cli.core.profiles import supported_api_version, PROFILE_TYPE
-from azure.cli.command_modules.redis._client_factory import (cf_redis, 
cf_patch_schedules)
+from azure.cli.core.commands import CliCommandType
+
+from azure.cli.command_modules.redis._client_factory import cf_redis, 
cf_patch_schedules
 from azure.cli.command_modules.redis.custom import 
wrong_vmsize_argument_exception_handler
 
-if not supported_api_version(PROFILE_TYPE, max_api='2017-03-09-profile'):
-    redis_operation = 
'azure.mgmt.redis.operations.redis_operations#RedisOperations.'
-    redis_custom = 'azure.cli.command_modules.redis.custom#'
-    redis_patch_operation = \
-        
'azure.mgmt.redis.operations.patch_schedules_operations#PatchSchedulesOperations.'
-
-    cli_command(__name__, 'redis create', redis_custom + 'cli_redis_create', 
cf_redis,
-                exception_handler=wrong_vmsize_argument_exception_handler)
-    cli_command(__name__, 'redis delete', redis_operation + 'delete', cf_redis)
-    cli_command(__name__, 'redis export', redis_custom + 'cli_redis_export', 
cf_redis)
-    cli_command(__name__, 'redis force-reboot', redis_operation + 
'force_reboot', cf_redis)
-    cli_command(__name__, 'redis import-method', redis_custom + 
'cli_redis_import_method', cf_redis)
-    cli_command(__name__, 'redis list', redis_operation + 
'list_by_resource_group', cf_redis)
-    cli_command(__name__, 'redis list-all', redis_operation + 'list', cf_redis)
-    cli_command(__name__, 'redis list-keys', redis_operation + 'list_keys', 
cf_redis)
-    cli_command(__name__, 'redis regenerate-keys', redis_operation + 
'regenerate_key', cf_redis)
-    cli_command(__name__, 'redis show', redis_operation + 'get', cf_redis)
-    cli_command(__name__, 'redis update-settings', redis_custom + 
'cli_redis_update_settings', cf_redis)
-
-    cli_generic_update_command(__name__, 'redis update',
-                               redis_operation + 'get',
-                               redis_operation + 'update',
-                               cf_redis,
-                               custom_function_op=redis_custom + 
'cli_redis_update',
-                               
exception_handler=wrong_vmsize_argument_exception_handler)
-
-    cli_command(__name__, 'redis patch-schedule set', redis_patch_operation + 
'create_or_update',
-                cf_patch_schedules)
-    cli_command(__name__, 'redis patch-schedule delete', redis_patch_operation 
+ 'delete',
-                cf_patch_schedules)
-    cli_command(__name__, 'redis patch-schedule show', redis_patch_operation + 
'get',
-                cf_patch_schedules)
+
+def load_command_table(self, _):
+
+    redis_sdk = CliCommandType(
+        
operations_tmpl='azure.mgmt.redis.operations.redis_operations#RedisOperations.{}',
+        client_factory=cf_redis)
+
+    redis_patch = CliCommandType(
+        
operations_tmpl='azure.mgmt.redis.operations.patch_schedules_operations#PatchSchedulesOperations.{}',
+        client_factory=cf_patch_schedules)
+
+    with self.command_group('redis', redis_sdk) as g:
+        g.custom_command('create', 'cli_redis_create', client_factory=cf_redis,
+                         
exception_handler=wrong_vmsize_argument_exception_handler)
+        g.command('delete', 'delete')
+        g.custom_command('export', 'cli_redis_export')
+        g.command('force-reboot', 'force_reboot')
+        g.custom_command('import-method', 'cli_redis_import_method')
+        g.command('list', 'list_by_resource_group')
+        g.command('list-all', 'list')
+        g.command('list-keys', 'list_keys')
+        g.command('regenerate-keys', 'regenerate_key')
+        g.command('show', 'get')
+        g.custom_command('update-settings', 'cli_redis_update_settings')
+        g.generic_update_command('update', 
exception_handler=wrong_vmsize_argument_exception_handler,
+                                 setter_name='update', 
custom_func_name='cli_redis_update')
+
+    with self.command_group('redis patch-schedule', redis_patch) as g:
+        g.command('set', 'create_or_update')
+        g.command('delete', 'delete')
+        g.command('patch-schedule show', 'get')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/custom.py 
new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/custom.py
--- old/azure-cli-redis-0.2.9/azure/cli/command_modules/redis/custom.py 
2017-09-23 01:47:00.000000000 +0200
+++ new/azure-cli-redis-0.2.11/azure/cli/command_modules/redis/custom.py        
2018-01-05 22:11:35.000000000 +0100
@@ -3,26 +3,45 @@
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
 # 
--------------------------------------------------------------------------------------------
 
-from azure.cli.core.util import CLIError
+from knack.log import get_logger
+from knack.util import CLIError
 
-import azure.cli.core.azlogging as azlogging
 
-logger = azlogging.get_az_logger(__name__)
+logger = get_logger(__name__)
 
 
-def cli_redis_export(client, resource_group_name, name, prefix, container, 
file_format=None):
+def wrong_vmsize_argument_exception_handler(ex):
+
+    from msrest.exceptions import ClientException
+    if isinstance(ex, ClientException):
+        if ("The value of the parameter 
'properties.sku.family/properties.sku.capacity' is invalid"
+                in format(ex)) \
+                or ("The value of the parameter 'properties.sku.family' is 
invalid"
+                    in format(ex)):
+            raise CLIError('Invalid VM size. Example for Valid values: '
+                           'For C family (C0, C1, C2, C3, C4, C5, C6), '
+                           'for P family (P1, P2, P3, P4)')
+    raise ex
+
+
+# region Custom Commands
+
+# pylint: disable=unused-argument
+def cli_redis_export(cmd, client, resource_group_name, name, prefix, 
container, file_format=None):
     from azure.mgmt.redis.models import ExportRDBParameters
     parameters = ExportRDBParameters(prefix, container, file_format)
     return client.export(resource_group_name, name, parameters)
 
 
-def cli_redis_import_method(client, resource_group_name, name, file_format, 
files):
+# pylint: disable=unused-argument
+def cli_redis_import_method(cmd, client, resource_group_name, name, 
file_format, files):
     from azure.mgmt.redis.models import ImportRDBParameters
     parameters = ImportRDBParameters(files, file_format)
     return client.import_method(resource_group_name, name, files, parameters)
 
 
-def cli_redis_update_settings(client, resource_group_name, name, 
redis_configuration):
+# pylint: disable=unused-argument
+def cli_redis_update_settings(cmd, client, resource_group_name, name, 
redis_configuration):
     from azure.mgmt.redis.models import RedisUpdateParameters
     logger.warning('This command is getting deprecated. Please use "redis 
update" command')
 
@@ -44,7 +63,8 @@
     return client.update(resource_group_name, name, parameters=update_params)
 
 
-def cli_redis_update(instance, sku=None, vm_size=None):
+# pylint: disable=unused-argument
+def cli_redis_update(cmd, instance, sku=None, vm_size=None):
     from azure.mgmt.redis.models import RedisUpdateParameters
     if sku is not None:
         instance.sku.name = sku
@@ -63,25 +83,11 @@
         instance.sku,
         instance.tags
     )
-
     return update_params
 
 
-def wrong_vmsize_argument_exception_handler(ex):
-
-    from msrest.exceptions import ClientException
-    if isinstance(ex, ClientException):
-        if ("The value of the parameter 
'properties.sku.family/properties.sku.capacity' is invalid"
-                in format(ex)) \
-                or ("The value of the parameter 'properties.sku.family' is 
invalid"
-                    in format(ex)):
-            raise CLIError('Invalid VM size. Example for Valid values: '
-                           'For C family (C0, C1, C2, C3, C4, C5, C6), '
-                           'for P family (P1, P2, P3, P4)')
-    raise ex
-
-
-def cli_redis_create(client,
+# pylint: disable=unused-argument
+def cli_redis_create(cmd, client,
                      resource_group_name, name, location, sku, vm_size, 
tags=None,
                      redis_configuration=None, enable_non_ssl_port=None, 
tenant_settings=None,
                      shard_count=None, subnet_id=None, static_ip=None):
@@ -110,5 +116,6 @@
         shard_count,
         subnet_id,
         static_ip)
-
     return client.create(resource_group_name, name, params)
+
+# endregion
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure_cli_redis.egg-info/PKG-INFO 
new/azure-cli-redis-0.2.11/azure_cli_redis.egg-info/PKG-INFO
--- old/azure-cli-redis-0.2.9/azure_cli_redis.egg-info/PKG-INFO 2017-09-23 
01:47:30.000000000 +0200
+++ new/azure-cli-redis-0.2.11/azure_cli_redis.egg-info/PKG-INFO        
2018-01-05 22:12:35.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: azure-cli-redis
-Version: 0.2.9
+Version: 0.2.11
 Summary: Microsoft Azure Command-Line Tools Redis Command Module
 Home-page: https://github.com/Azure/azure-cli
 Author: Microsoft Corporation
@@ -20,6 +20,15 @@
         
         Release History
         ===============
+        
+        0.2.11
+        ++++++
+        * Update for CLI core changes.
+        
+        0.2.10
+        ++++++
+        * minor fixes
+        
         0.2.9 (2017-09-22)
         ++++++++++++++++++
         * minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure_cli_redis.egg-info/SOURCES.txt 
new/azure-cli-redis-0.2.11/azure_cli_redis.egg-info/SOURCES.txt
--- old/azure-cli-redis-0.2.9/azure_cli_redis.egg-info/SOURCES.txt      
2017-09-23 01:47:30.000000000 +0200
+++ new/azure-cli-redis-0.2.11/azure_cli_redis.egg-info/SOURCES.txt     
2018-01-05 22:12:35.000000000 +0100
@@ -10,6 +10,7 @@
 azure/cli/command_modules/redis/_client_factory.py
 azure/cli/command_modules/redis/_help.py
 azure/cli/command_modules/redis/_params.py
+azure/cli/command_modules/redis/_validators.py
 azure/cli/command_modules/redis/commands.py
 azure/cli/command_modules/redis/custom.py
 azure_cli_redis.egg-info/PKG-INFO
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-redis-0.2.9/azure_cli_redis.egg-info/requires.txt 
new/azure-cli-redis-0.2.11/azure_cli_redis.egg-info/requires.txt
--- old/azure-cli-redis-0.2.9/azure_cli_redis.egg-info/requires.txt     
2017-09-23 01:47:30.000000000 +0200
+++ new/azure-cli-redis-0.2.11/azure_cli_redis.egg-info/requires.txt    
2018-01-05 22:12:35.000000000 +0100
@@ -1,3 +1,2 @@
 azure-mgmt-redis==4.1.0
 azure-cli-core
-azure-cli-command-modules-nspkg>=2.0.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-redis-0.2.9/setup.py 
new/azure-cli-redis-0.2.11/setup.py
--- old/azure-cli-redis-0.2.9/setup.py  2017-09-23 01:47:30.000000000 +0200
+++ new/azure-cli-redis-0.2.11/setup.py 2018-01-05 22:11:35.000000000 +0100
@@ -15,7 +15,7 @@
     logger.warn("Wheel is not available, disabling bdist_wheel hook")
     cmdclass = {}
 
-VERSION = "0.2.9"
+VERSION = "0.2.11"
 # The full list of classifiers is available at
 # https://pypi.python.org/pypi?%3Aaction=list_classifiers
 CLASSIFIERS = [


Reply via email to