diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-04-06 19:34:30 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-04-06 19:35:21 -0500 |
commit | 742fc83dcdb82639b97723ce4cbfade75fb1aa71 (patch) | |
tree | 3c242e7029ab20f03300292d272e665c33c17943 /src/lib/Server/Admin/Perf.py | |
parent | e17608a61575ec9d50cfed34a80540257254840b (diff) | |
download | bcfg2-742fc83dcdb82639b97723ce4cbfade75fb1aa71.tar.gz bcfg2-742fc83dcdb82639b97723ce4cbfade75fb1aa71.tar.bz2 bcfg2-742fc83dcdb82639b97723ce4cbfade75fb1aa71.zip |
bcfg2-admin: PY3K + PEP8 fixes
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Server/Admin/Perf.py')
-rw-r--r-- | src/lib/Server/Admin/Perf.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/Server/Admin/Perf.py b/src/lib/Server/Admin/Perf.py index 095180592..af1c83072 100644 --- a/src/lib/Server/Admin/Perf.py +++ b/src/lib/Server/Admin/Perf.py @@ -1,8 +1,9 @@ +import sys + import Bcfg2.Options import Bcfg2.Proxy import Bcfg2.Server.Admin -import sys class Perf(Bcfg2.Server.Admin.Mode): __shorthelp__ = ("Query server for performance data") @@ -27,11 +28,11 @@ class Perf(Bcfg2.Server.Admin.Mode): proxy = Bcfg2.Proxy.ComponentProxy(setup['server'], setup['user'], setup['password'], - key = setup['key'], - cert = setup['certificate'], - ca = setup['ca']) + key=setup['key'], + cert=setup['certificate'], + ca=setup['ca']) data = proxy.get_statistics() - for key, value in data.iteritems(): + for key, value in list(data.items()): data = tuple(["%.06f" % (item) for item in value[:-1]] + [value[-1]]) output.append((key, ) + data) self.print_table(output) |