Issue with self in defswq

This commit is contained in:
Joshua Boniface 2018-05-31 23:41:52 -04:00
parent bd4329b09f
commit 1f2adafc4e
1 changed files with 5 additions and 5 deletions

View File

@ -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