Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyW committed May 20, 2024
1 parent 3427bb0 commit 25cd98d
Show file tree
Hide file tree
Showing 6 changed files with 473 additions and 561 deletions.
12 changes: 4 additions & 8 deletions src/monitor-control-service/azext_amcs/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# pylint: disable=protected-access, line-too-long, too-many-branches, raise-missing-from, consider-using-f-string

from collections import defaultdict
from knack.util import to_snake_case
from azure.cli.core.aaz import has_value, AAZStrArg
from azure.cli.core.azclierror import ValidationError
from azure.cli.core.commands.validators import validate_file_or_dict
Expand Down Expand Up @@ -128,14 +129,9 @@ def pre_operations(self):
else:
data = json_data
for key in data:
if key == 'dataSources':
args.data_sources = data['dataSources']
if key == 'destinations':
args.destinations = data['destinations']
if key == 'dataFlows':
args.data_flows = data['dataFlows']
if key == "streamDeclarations":
args.stream_declarations = data["streamDeclarations"]
arg_key = to_snake_case(key)
if hasattr(args, arg_key):
setattr(args, arg_key, data[key])


def process_data_flows_remain(args):
Expand Down
Loading

0 comments on commit 25cd98d

Please sign in to comment.