Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/netappfiles-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Release History
===============
0.4.2
+++++
Support for api-version 2022-11-01-preview
Add command groups `az netappfiles accounts backup-vaults`
Remove command groups `az netappfiles accounts` `az netappfiles pools` as those are now in Azure CLI NetApp Files main module

0.3.2
+++++
Expand Down
19 changes: 15 additions & 4 deletions src/netappfiles-preview/azext_netappfiles_preview/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,28 @@ class NetAppExtensionCommandsLoader(AzCommandsLoader):
def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
netapp_custom = CliCommandType(operations_tmpl='azext_netappfiles_preview.custom#{}')
super(NetAppExtensionCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=netapp_custom)
super().__init__(cli_ctx=cli_ctx,
custom_command_type=netapp_custom)

def load_command_table(self, args):
super(NetAppExtensionCommandsLoader, self).load_command_table(args)
super().load_command_table(args)
from .commands import load_command_table
from azure.cli.core.aaz import load_aaz_command_table
try:
from . import aaz
except ImportError:
aaz = None
if aaz:
load_aaz_command_table(
loader=self,
aaz_pkg_name=aaz.__name__,
args=args
)
load_command_table(self, args)
return self.command_table

def load_arguments(self, command):
super(NetAppExtensionCommandsLoader, self).load_arguments(command)
super().load_arguments(command)
from ._params import load_arguments
load_arguments(self, command)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@ def netapp_exception_handler(ex):
if isinstance(ex, (CloudError, ValidationError, ValueError)):
message = ex
raise CLIError(message)
else:
import sys

from six import reraise
reraise(*sys.exc_info())
raise ex
Loading