To avoid pylint's too-many-nested-blocks warning. No functional change.
Signed-off-by: Brian Foley <bpfo...@google.com> --- lib/client/gnt_cluster.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index b32e62e..ad02400 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -829,14 +829,15 @@ def VerifyDisks(opts, args): if all_missing: ToStdout("Instance %s cannot be verified as it lives on" " broken nodes", iname) - else: - ToStdout("Instance %s has missing logical volumes:", iname) - ival.sort() - for node, vol in ival: - if node in bad_nodes: - ToStdout("\tbroken node %s /dev/%s", node, vol) - else: - ToStdout("\t%s /dev/%s", node, vol) + continue + + ToStdout("Instance %s has missing logical volumes:", iname) + ival.sort() + for node, vol in ival: + if node in bad_nodes: + ToStdout("\tbroken node %s /dev/%s", node, vol) + else: + ToStdout("\t%s /dev/%s", node, vol) ToStdout("You need to replace or recreate disks for all the above" " instances if this message persists after fixing broken nodes.") -- 2.8.0.rc3.226.g39d4020