Avoid tracebacks on initial probe 12/66612/3
authorStephen Kitt <skitt@redhat.com>
Tue, 19 Dec 2017 11:06:02 +0000 (12:06 +0100)
committerJamo Luhrsen <jluhrsen@redhat.com>
Wed, 20 Dec 2017 18:06:45 +0000 (10:06 -0800)
commit85c3c53c576057e2859ba88b02c2290d563d097d
tree5e49843d39ee40065a13e54f7aa0d2827f119675
parentc22f4802df965143d8bd72ae25b0c763f51a8bde
Avoid tracebacks on initial probe

rest_get is called to retrieve shard information twice, once without a
try block, and again in a try block. When a controller is down, the
first one fails, so the try block is useless (and the user ends up
with an obscure error message).

This patch removes the first, useless call.

Change-Id: I2f6753d71250e3911fbcbbdd31a8b2f595c663c9
Signed-off-by: Stephen Kitt <skitt@redhat.com>
tools/clustering/cluster-monitor/monitor.py