fixing --custom in mn (there was one two many selfs)

This commit is contained in:
Brian O'Connor
2014-11-17 17:46:24 -08:00
parent 1edf3515e3
commit 593fc365d0
+1 -1
View File
@@ -189,7 +189,7 @@ class MininetRunner( object ):
opts.add_option( '--clean', '-c', action='store_true', opts.add_option( '--clean', '-c', action='store_true',
default=False, help='clean and exit' ) default=False, help='clean and exit' )
opts.add_option( '--custom', action='callback', opts.add_option( '--custom', action='callback',
callback=partial( self.custom, self=self ), callback=self.custom,
type='string', help='read custom classes or params from .py file(s)' ) type='string', help='read custom classes or params from .py file(s)' )
opts.add_option( '--test', type='choice', choices=TESTS, opts.add_option( '--test', type='choice', choices=TESTS,
default=TESTS[ 0 ], default=TESTS[ 0 ],