@@ -966,7 +966,7 @@ def add_suffix_to_objects(payload, api_type, objects_suffix):
966
966
return
967
967
968
968
fields_to_change = ["name" , "source" , "destination" , "service" , "members" , "inline-layer" , "networks" , "host" ,
969
- "protected-scope" , "protection-or-site" , "exception-group-name" , "rule-name" , "applied-threat-rules" ]
969
+ "protected-scope" , "protection-or-site" , "action" , "site-category" , " exception-group-name" , "rule-name" , "applied-threat-rules" ]
970
970
if api_type == "threat-exception" and "exception-group-name" in payload and "name" not in payload :
971
971
payload .update ({"name" : "" })
972
972
for field in fields_to_change :
@@ -976,11 +976,11 @@ def add_suffix_to_objects(payload, api_type, objects_suffix):
976
976
newName = oldName + objects_suffix
977
977
payload [field ] = newName
978
978
changed_object_names_map [oldName ] = newName
979
- elif field in ["source" , "destination" , "service" , "members" , "protected-scope" , "protection-or-site" ]:
979
+ elif field in ["source" , "destination" , "service" , "members" , "protected-scope" , "protection-or-site" , "site-category" ]:
980
980
for i in range (len (payload [field ])):
981
981
if payload [field ][i ] in changed_object_names_map and payload [field ][i ] != "IPS" :
982
982
payload [field ][i ] = changed_object_names_map [payload [field ][i ]]
983
- elif field in ["inline-layer" , "host" , "exception-group-name" , "rule-name" ]:
983
+ elif field in ["inline-layer" , "host" , "exception-group-name" , "rule-name" , "action " ]:
984
984
if payload [field ] in changed_object_names_map :
985
985
payload [field ] = changed_object_names_map [payload [field ]]
986
986
elif field == "networks" :
0 commit comments