ShutdownInstanceDisks: accept offline secondaries
authorIustin Pop <iustin@google.com>
Fri, 17 Dec 2010 14:20:57 +0000 (15:20 +0100)
committerIustin Pop <iustin@google.com>
Fri, 17 Dec 2010 15:36:33 +0000 (16:36 +0100)
commit7c2e922e178e28b60e9871d1cf0d37bf9203f9de
tree010cc069f5365c8e170fc46f8ad2df7321872a96
parent2c0f74f24c0913a25c1d1dcb84ffa937413a9aca
ShutdownInstanceDisks: accept offline secondaries

For secondary node that is offline, we should not consider that the
disk shutdown has failed, as it can never succeed under this cluster
state and (by virtue of the fact that the secondary node is offline)
the disks are already "shutdown".

The patch also fixes a tiny typo.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/cmdlib.py