Skip to content

Commit

Permalink
Update __init__.py (Azure#8318)
Browse files Browse the repository at this point in the history
Updated the init to remove extension if customer has already installed.
  • Loading branch information
yareyes authored and tjprescott committed Jan 24, 2019
1 parent 9291615 commit 4ca8566
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,20 @@
import azure.cli.command_modules.sqlvm._help # pylint: disable=unused-import


# pylint: disable=line-too-long
class SqlVmCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core import ModExtensionSuppress
from azure.cli.core.commands import CliCommandType

sqlvm_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.sqlvm.custom#{}')
super(SqlVmCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=sqlvm_custom,
min_profile='2017-03-10-profile')
min_profile='2017-03-10-profile',
suppress_extension=ModExtensionSuppress(__name__, 'sqlvm-preview', '0.1.0',
reason='These commands are now in the CLI.',
recommend_remove=True))

def load_command_table(self, args):
from azure.cli.command_modules.sqlvm.commands import load_command_table
Expand Down

0 comments on commit 4ca8566

Please sign in to comment.