#901 - Replaced "ALLOW" with RulePermissionType.ALLOW

- Added Explicit ALLOW to test_configs in order for tests to work
- Added typing to access_control_list.py and acl_rule.py
This commit is contained in:
SunilSamra
2023-07-17 20:40:00 +01:00
parent a2f43b5abc
commit 9520cfea24
7 changed files with 55 additions and 40 deletions

View File

@@ -489,7 +489,7 @@ class AccessControlList(AbstractObservationComponent):
# Map each ACL attribute from what it was to an integer to fit the observation space
source_ip_int = None
dest_ip_int = None
if permission == "DENY":
if permission == RulePermissionType.DENY:
permission_int = 1
else:
permission_int = 2