X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/f2311a36498329ad2de242ab483e91c04c39cde0..66661442d6aa7012846b6fd7e1487f809339fd24:/lib/wizard/command/summary.py diff --git a/lib/wizard/command/summary.py b/lib/wizard/command/summary.py index 689225c..c84348b 100644 --- a/lib/wizard/command/summary.py +++ b/lib/wizard/command/summary.py @@ -34,7 +34,7 @@ class Printer(object): self._hang() print str -def main(argv, global_options): +def summary(argv, global_options): usage = """usage: %prog summary [ARGS] APPS Scans all of the collected data from parallel-find.pl, and @@ -74,10 +74,11 @@ Examples: except wd.NoSuchApplication: unrecognized += 1 continue - if deploy.application.name + "-" + str(deploy.getVersion()) in show: + name = deploy.getApplication().name + if name + "-" + str(deploy.getVersion()) in show: printer.write("%s-%s deployment at %s" \ - % (deploy.application.name, deploy.getVersion(), deploy.location)) - elif deploy.application.name in show: + % (name, deploy.getVersion(), deploy.location)) + elif name in show: pass else: continue @@ -89,7 +90,7 @@ Examples: printer.write() for app in wd.applications.values(): if app.name not in show: continue - printer.write(app) + printer.write(app.report()) printer.write() printer.write("With %d errors and %d unrecognized applications" % (errors, unrecognized))