Skip to content

Commit

Permalink
PAPP-34457: logic change to edit destination group
Browse files Browse the repository at this point in the history
  • Loading branch information
tapishj-splunk committed Aug 16, 2024
1 parent 0a9544d commit c4cef61
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions zscaler_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1390,14 +1390,11 @@ def _handle_edit_destination_group(self, param):
ret_val, group_resp = self._get_destination_group(group_id, action_result)
if phantom.is_fail(ret_val):
return action_result.get_status()
self.debug_print("handle edit response {0}".format(group_resp))
if param.get("name"):
group_resp["name"] = param["name"]
group_resp["name"] = param.get("name", group_resp["name"])
if param.get('addresses'):
new_addresses = [item.strip() for item in param["addresses"].split(',') if item.strip()]
group_resp["addresses"] = new_addresses
if param.get("description"):
group_resp["description"] = param["description"]
group_resp["description"] = param.get("description", group_resp["description"])
if param.get("ip_categories"):
new_ip_categories = [item.strip() for item in param["ip_categories"].split(',') if item.strip()]
group_resp["ipCategories"] = new_ip_categories
Expand Down

0 comments on commit c4cef61

Please sign in to comment.