fix key value in mapcmds
This commit is contained in:
parent
1a0f9b2e53
commit
db4a4292cc
2
nodes.py
2
nodes.py
@ -125,7 +125,7 @@ class Node(object):
|
|||||||
dfile = os.path.join(ddir, 'node-%s-%s-%s' %
|
dfile = os.path.join(ddir, 'node-%s-%s-%s' %
|
||||||
(self.node_id, self.ip, os.path.basename(f)))
|
(self.node_id, self.ip, os.path.basename(f)))
|
||||||
logging.info('outfile: %s' % dfile)
|
logging.info('outfile: %s' % dfile)
|
||||||
self.mapcmds[f] = dfile
|
self.mapcmds[os.path.basename(f)] = dfile
|
||||||
try:
|
try:
|
||||||
with open(dfile, 'w') as df:
|
with open(dfile, 'w') as df:
|
||||||
df.write(outs)
|
df.write(outs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user