Expose allow-failover option to RAPI client
authorYiannis Tsiouris <tsiou@grnet.gr>
Mon, 6 Feb 2017 14:17:11 +0000 (16:17 +0200)
committerViktor Bachraty <vbachraty@google.com>
Mon, 6 Feb 2017 20:56:24 +0000 (20:56 +0000)
commitc405e4087c3bf21687c75511a79c75162bee185a
treecd5e7fbdfc2eae93403cbdbd55842713a3b30294
parent2cb216028a063024a3ff4246ec417b23ab9507a1
Expose allow-failover option to RAPI client

'gnt-instance migrate' supports performing a failover on an instance
that is not possible to migrate (e.g. if the instance is down). This
patch exposes this option ('--allow-failover') to the RAPI client.

Signed-off-by: Yiannis Tsiouris <tsiou@grnet.gr>
Signed-off-by: Alex Kiousis <alexk@noc.grnet.gr>
Reviewed-by: Viktor Bachraty <vbachraty@google.com>
lib/rapi/client.py
test/py/ganeti.rapi.client_unittest.py