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>
Fri, 8 Jan 2016 13:47:28 +0000 (14:47 +0100)
commit2e9fdace3c08c9019bcdb886208fcd79bc25e4db
tree6c676a97455e140b8142d9e91898e5be72d0e05e
parentb267251919f8276e52c117644bce3f13f71ee01c
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>
Cherry-picked-from: 88ac338d88465cc0b
Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
lib/backend.py
test/py/ganeti.backend_unittest.py