Skip to content

Commit 8b82825

Browse files
authored
Update custom.py
1 parent ada9ae4 commit 8b82825

File tree

1 file changed

+7
-7
lines changed
  • src/monitor-control-service/azext_amcs

1 file changed

+7
-7
lines changed

src/monitor-control-service/azext_amcs/custom.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ def _build_arguments_schema(cls, *args, **kwargs):
3232

3333

3434
def monitor_data_collection_rule_association_list(cmd, resource_group_name=None, data_collection_rule_name=None,
35-
data_collection_endpoint_name=None, resource_uri=None):
35+
resource_uri=None):
3636
if resource_group_name and data_collection_rule_name is not None:
3737
from .aaz.latest.monitor.data_collection.rule.association import List as ListByRule
3838
return ListByRule(cli_ctx=cmd.cli_ctx)(command_args={
3939
"data_collection_rule_name": data_collection_rule_name,
4040
"resource_group": resource_group_name,
4141
})
42-
if resource_group_name and data_collection_endpoint_name is not None:
43-
from .aaz.latest.monitor.data_collection.endpoint.association import List as ListByEndpoint
44-
return ListByEndpoint(cli_ctx=cmd.cli_ctx)(command_args={
45-
"data_collection_endpoint_name": data_collection_rule_name,
46-
"resource_group": resource_group_name,
47-
})
42+
# if resource_group_name and data_collection_endpoint_name is not None:
43+
# from .aaz.latest.monitor.data_collection.endpoint.association import List as ListByEndpoint
44+
# return ListByEndpoint(cli_ctx=cmd.cli_ctx)(command_args={
45+
# "data_collection_endpoint_name": data_collection_rule_name,
46+
# "resource_group": resource_group_name,
47+
# })
4848
from .aaz.latest.monitor.data_collection.rule.association import ListByResource
4949
return ListByResource(cli_ctx=cmd.cli_ctx)(command_args={"resource_uri": resource_uri})
5050

0 commit comments

Comments
 (0)