From 1f2adafc4e6117bf7d4ec9bdf5c9623996ed4f3d Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Thu, 31 May 2018 23:41:52 -0400 Subject: [PATCH] Issue with self in defswq --- NodeInstance.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NodeInstance.py b/NodeInstance.py index 35b6627d..a336ca82 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -14,20 +14,20 @@ class NodeInstance(threading.Thread): self.domainlist = [] # Get value functions - def getfreemem(): + def getfreemem(self): return self.memfree - def getcpuload(): + def getcpuload(self): return self.cpuload - def getname(): + def getname(self): return self.name - def getstate(): + def getstate(self): return self.state # Update value functions - def updatenodelist(node_list): + def updatenodelist(self, node_list): self.node_list = node_list # Shutdown the thread