rename variable

This commit is contained in:
ooooo 2016-05-04 20:15:19 +08:00
parent ff7c5b04df
commit f4c5126b06
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ class Worker(object):
# worker search all run nodes to judge how to init
value = 'init-new'
[status, runlist] = self.etcd.listdir("machines/allnodes")
for node in runlist:
[status, alllist] = self.etcd.listdir("machines/allnodes")
for node in alllist:
if node['key'] == self.key:
value = 'init-recovery'
break