From c0a5fbe5c61387138df994dc0209bf6bc29abac0 Mon Sep 17 00:00:00 2001 From: astokes Date: Thu, 25 Feb 2010 20:46:06 +0000 Subject: - plugin info git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@781 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- sos/sosreport.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sos/sosreport.py b/sos/sosreport.py index 84963746..67144d8c 100755 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -515,7 +515,7 @@ def sosreport(opts): opts[plug].append( (opt, val) ) for plugname, plug in GlobalVars.loadedplugins: - if opts.has_key(plugname): + if plugname in opts: for opt, val in opts[plugname]: if not plug.setOption(opt, val): soslog.error('no such option "%s" for plugin ' \ @@ -696,7 +696,11 @@ No changes will be made to your system. print _(" Running plugins. Please wait ...") print + plugruncount = 0 for i in izip(GlobalVars.loadedplugins): + sys.stdout.write("\r") + sys.stdout.write("Completed [%d/%d] ... " % (plugruncount, + len(Globalvars.loadedplugins))) plugname, plug = i[0] try: plug.copyStuff() -- cgit