901 - changed how acl rules are added to access control list and added structure to AccessControlList observation

This commit is contained in:
SunilSamra
2023-07-06 11:07:21 +01:00
parent f121b0e21c
commit f651937759
4 changed files with 32 additions and 6 deletions

View File

@@ -111,7 +111,9 @@ class AccessControlList:
if _position is not None:
if self.max_acl_rules - 1 > position_index > -1:
try:
self._acl.insert(position_index, new_rule)
# self._acl.insert(position_index, new_rule)
if self._acl[position_index] is None:
self.acl[position_index] = new_rule
except Exception:
_LOGGER.info(f"New Rule could NOT be added to list at position {position_index}.")
else: