|
@@ -234,6 +234,7 @@ class inspect(Command):
|
|
|
help="Timeout in seconds (float) waiting for reply"),
|
|
|
Option("--destination", "-d", dest="destination",
|
|
|
help="Comma separated list of destination node names."))
|
|
|
+ show_body = True
|
|
|
|
|
|
def usage(self, command):
|
|
|
return "%%prog %s [options] %s [%s]" % (
|
|
@@ -241,6 +242,7 @@ class inspect(Command):
|
|
|
|
|
|
def run(self, *args, **kwargs):
|
|
|
self.quiet = kwargs.get("quiet", False)
|
|
|
+ self.show_body = kwargs.get("show_body", False)
|
|
|
if not args:
|
|
|
raise Error("Missing inspect command. See --help")
|
|
|
command = args[0]
|
|
@@ -276,7 +278,7 @@ class inspect(Command):
|
|
|
return
|
|
|
dirstr = not self.quiet and c.bold(c.white(direction), " ") or ""
|
|
|
self.out(c.reset(dirstr, title))
|
|
|
- if body and not self.quiet:
|
|
|
+ if body and self.show_body:
|
|
|
self.out(body)
|
|
|
inspect = command(inspect)
|
|
|
|
|
@@ -292,7 +294,7 @@ class status(Command):
|
|
|
def run(self, *args, **kwargs):
|
|
|
replies = inspect(app=self.app,
|
|
|
no_color=kwargs.get("no_color", False)) \
|
|
|
- .run("ping", **dict(kwargs, quiet=True))
|
|
|
+ .run("ping", **dict(kwargs, quiet=True, show_body=False))
|
|
|
if not replies:
|
|
|
raise Error("No nodes replied within time constraint")
|
|
|
nodecount = len(replies)
|