Skip to content

Commit

Permalink
[Stack] Fix provider operation show for stack profile (Azure#7090)
Browse files Browse the repository at this point in the history
  • Loading branch information
viananth authored and troydai committed Aug 21, 2018
1 parent 714f52c commit c75d9a8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from azure.cli.core.parser import IncorrectUsageError
from azure.cli.core.util import get_file_json, shell_safe_json_parse, sdk_no_wait
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.profiles import ResourceType, get_sdk
from azure.cli.core.profiles import ResourceType, get_sdk, get_api_version

from azure.cli.command_modules.resource._client_factory import (
_resource_client_factory, _resource_policy_client_factory, _resource_lock_client_factory,
Expand Down Expand Up @@ -937,7 +937,10 @@ def list_provider_operations(cmd):


def show_provider_operations(cmd, resource_provider_namespace):
version = getattr(get_api_version(cmd.cli_ctx, ResourceType.MGMT_AUTHORIZATION), 'provider_operations_metadata')
auth_client = _authorization_management_client(cmd.cli_ctx)
if version == '2015-07-01':
return auth_client.provider_operations_metadata.get(resource_provider_namespace, version)
return auth_client.provider_operations_metadata.get(resource_provider_namespace)


Expand Down

0 comments on commit c75d9a8

Please sign in to comment.