diff --git a/src/uds/REST/methods/servers_management.py b/src/uds/REST/methods/servers_management.py index c33521cf1..1c52a19a5 100644 --- a/src/uds/REST/methods/servers_management.py +++ b/src/uds/REST/methods/servers_management.py @@ -573,8 +573,6 @@ def post_save(self, item: 'Model') -> None: 'weights_memory', 'weights_users', 'weights_max_expected_users', - 'weights_min_memory', - 'weights_users_limit', ] args = self.fields_from_params(weights_params) # Load parameters to be normalized diff --git a/src/uds/core/util/ldaputil.py b/src/uds/core/util/ldaputil.py index 151189429..8cd97d7f9 100644 --- a/src/uds/core/util/ldaputil.py +++ b/src/uds/core/util/ldaputil.py @@ -250,7 +250,7 @@ def add( True if the operation was successful, raises LDAPError otherwise """ try: - result = typing.cast(typing.Any, con.add(dn, attributes)) + result = typing.cast(typing.Any, con.add(dn, attributes=attributes)) if not result: _raise_for_result('Add', typing.cast(collections.abc.Mapping[str, typing.Any], con.result)) return True