diff --git a/src/modules/host.py b/src/modules/host.py index 56ee4ce1a..95334e786 100644 --- a/src/modules/host.py +++ b/src/modules/host.py @@ -382,19 +382,19 @@ def clean(self, id): if len(clusters) <= 0: return True - host = self.db_set_by_id(id, autofill=False) + host = self.db_set_by_id(id, **{"autofill": False}) schedulable_status = host.schedulable if schedulable_status: - host = self.db_set_by_id(id, schedulable=False) + host = self.db_set_by_id(id, **{"schedulable": False}) for cluster_item in clusters: cid = str(cluster_item.id) - t = Thread(target=cluster_item.cluster_handler.delete, args=(cid,)) + t = Thread(target=cluster.cluster_handler.delete, args=(cid,)) t.start() time.sleep(0.2) if schedulable_status: - self.db_set_by_id(id, schedulable=schedulable_status) + self.db_set_by_id(id, **{"schedulable": schedulable_status}) return True