Fix renew-crypto on one-node-cluster
authorHelga Velroyen <helgav@google.com>
Wed, 16 Dec 2015 10:03:23 +0000 (11:03 +0100)
committerHelga Velroyen <helgav@google.com>
Thu, 7 Jan 2016 13:33:33 +0000 (14:33 +0100)
commit88ac338d88465cc0b6d7f51b2384aa9fa0e9316a
treea57920b2cbd451dac7983fd1fb3b818b1c9c8d7e
parentd641d6db0d5a54e10f6126a67f502251ac7c9857
Fix renew-crypto on one-node-cluster

There was a bug which made 'gnt-cluster renew-crypto'
crash if it is a one-node cluster. This patch fixes
it by checking if there are any non-master nodes
to update at all.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
lib/backend.py
test/py/ganeti.backend_unittest.py