Issue with self in defswq
This commit is contained in:
parent
bd4329b09f
commit
1f2adafc4e
|
@ -14,20 +14,20 @@ class NodeInstance(threading.Thread):
|
||||||
self.domainlist = []
|
self.domainlist = []
|
||||||
|
|
||||||
# Get value functions
|
# Get value functions
|
||||||
def getfreemem():
|
def getfreemem(self):
|
||||||
return self.memfree
|
return self.memfree
|
||||||
|
|
||||||
def getcpuload():
|
def getcpuload(self):
|
||||||
return self.cpuload
|
return self.cpuload
|
||||||
|
|
||||||
def getname():
|
def getname(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
def getstate():
|
def getstate(self):
|
||||||
return self.state
|
return self.state
|
||||||
|
|
||||||
# Update value functions
|
# Update value functions
|
||||||
def updatenodelist(node_list):
|
def updatenodelist(self, node_list):
|
||||||
self.node_list = node_list
|
self.node_list = node_list
|
||||||
|
|
||||||
# Shutdown the thread
|
# Shutdown the thread
|
||||||
|
|
Loading…
Reference in New Issue