Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/command_modules/security/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ def create_security_automation_object(location, scopes, sources, actions, etag=N
actionsAsObjectList = []
for action in actions:
if action['actionType'] == 'LogicApp':
actionAsObject = AutomationActionLogicApp(logic_app_resource_id=action['logicAppResourceId'], uri=action['ruleSets'])
actionAsObject = AutomationActionLogicApp(logic_app_resource_id=action['logicAppResourceId'], uri=action['uri'])
elif action['actionType'] == 'EventHub':
actionAsObject = AutomationActionEventHub(event_hub_resource_id=action['eventHubResourceId'], connection_string=action['connectionString'])
elif action['actionType'] == 'Workspace':
Expand Down Expand Up @@ -1137,7 +1137,7 @@ def get_security_automation_rules_object(rules):

def sanitize_json_as_string(value: string):
valueLength = len(value)
if((value[0] == '\'' and value[valueLength - 1] == '\'') or (value[0] == '\"' and value[valueLength - 1] == '\"')):
if ((value[0] == '\'' and value[valueLength - 1] == '\'') or (value[0] == '\"' and value[valueLength - 1] == '\"')):
value = value[1:]
value = value[:-1]
return value