Fix API v2 server modification

This commit is contained in:
luukas 2022-05-19 16:01:03 +03:00
parent 1e96e7a6c9
commit f763fa9d0c

View File

@ -110,7 +110,7 @@ class ApiServersServerIndexHandler(BaseApiHandler):
server_obj = self.controller.servers.get_server_obj(server_id)
for key in data:
# If we don't validate the input there could be security issues
setattr(self, key, data[key])
setattr(server_obj, key, data[key])
self.controller.servers.update_server(server_obj)
self.controller.management.add_to_audit_log(