diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-02-25 20:46:06 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-02-25 20:46:06 +0000 |
commit | c0a5fbe5c61387138df994dc0209bf6bc29abac0 (patch) | |
tree | 19df90e598933bd59c702fc1503e29faee1077e7 | |
parent | 7a5cec65b06499b41512ca86ba22fba616e5d7e6 (diff) | |
download | sos-c0a5fbe5c61387138df994dc0209bf6bc29abac0.tar.gz |
- plugin info
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@781 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rwxr-xr-x | sos/sosreport.py | 6 |
1 files changed, 5 insertions, 1 deletions
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() |