Skip to content

Commit

Permalink
{Monitor} az monitor diagnostic-settings category list: fix bug(#12020)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmyyrroonn committed Feb 3, 2020
1 parent 78171d9 commit 680ea24
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ def cf_diagnostics(cli_ctx, _):
return cf_monitor(cli_ctx, _).diagnostic_settings


def cf_diagnostics_category(cli_ctx, _):
return cf_monitor(cli_ctx, _).diagnostic_settings_category


def cf_log_profiles(cli_ctx, _):
return cf_monitor(cli_ctx, _).log_profiles

Expand Down
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/command_modules/monitor/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def load_command_table(self, _):
from ._client_factory import (
cf_alert_rules, cf_metric_def, cf_alert_rule_incidents, cf_log_profiles, cf_autoscale,
cf_diagnostics, cf_activity_log, cf_action_groups, cf_activity_log_alerts, cf_event_categories,
cf_metric_alerts, cf_log_analytics_workspace)
cf_metric_alerts, cf_log_analytics_workspace, cf_diagnostics_category)
from ._exception_handler import monitor_exception_handler, missing_resource_handler
from .transformers import (action_group_list_table)
from .validators import process_autoscale_create_namespace
Expand Down Expand Up @@ -83,7 +83,7 @@ def load_command_table(self, _):

diagnostics_categories_sdk = CliCommandType(
operations_tmpl='azure.mgmt.monitor.operations#DiagnosticSettingsCategoryOperations.{}',
client_factory=cf_diagnostics,
client_factory=cf_diagnostics_category,
operation_group='diagnostic_settings_category',
exception_handler=monitor_exception_handler)

Expand Down
Loading

0 comments on commit 680ea24

Please sign in to comment.