[Ocfs2-tools-devel] [PATCH 5/5] Ocfs2-test: Fix a minor bug in run_create_racer.py

Tristan Ye tristan.ye at oracle.com
Wed Sep 17 01:48:50 PDT 2008


Should replace the add method with append for list(nodelist),since
'list' object has no attribute 'add'.

Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
 programs/create_racer/run_create_racer.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/create_racer/run_create_racer.py b/programs/create_racer/run_create_racer.py
index 0e790e6..4a58a9c 100644
--- a/programs/create_racer/run_create_racer.py
+++ b/programs/create_racer/run_create_racer.py
@@ -122,7 +122,7 @@ if __name__=='__main__':
 		nodelen = len(nodelist)
 		procs = nodelen
 		if nodelen == 1:
-			nodelist = nodelist.add(options.nodelist)
+			nodelist = nodelist.append(options.nodelist)
 		else:
 			nodelist = options.nodelist.split(',')
 	else:
-- 
1.5.5




More information about the Ocfs2-tools-devel mailing list