Skip to content

Commit

Permalink
Merge pull request #179 from AmrithaNagarajan/master
Browse files Browse the repository at this point in the history
modified acerules to support dynamic objects
  • Loading branch information
marksull authored Jan 29, 2024
2 parents dd0e9a4 + 61dd682 commit ca2406f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fmcapi/api_objects/policy_services/accessrules.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class AccessRules(APIClassTemplate):
"enableSyslog",
"newComments",
"commentHistoryList",
"sourceDynamicObjects",
"destinationDynamicObjects",
]
VALID_FOR_KWARGS = VALID_JSON_DATA + [
"acp_id",
Expand Down Expand Up @@ -207,6 +209,7 @@ def format_data(self, filter_query=""):
{"type": v, "value": k}
for k, v in self.destinationNetworks["literals"].items()
]

if "action" in self.__dict__:
if self.action not in self.VALID_FOR_ACTION:
logging.warning(f"Action {self.action} is not a valid action.")
Expand Down

0 comments on commit ca2406f

Please sign in to comment.