Commit 3427d34f authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

rapi: Add generic “force” parameter

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 3583908a
......@@ -50,6 +50,12 @@ This is useful in trying to determine (without guarantees though, as
in the meantime the cluster state could have changed) if the operation
is likely to succeed or at least start executing.
Force operation to continue even if it will cause the cluster to become
inconsistent (e.g. because there are not enough master candidates).
Usage examples
......@@ -279,6 +279,12 @@ class R_Generic(object):
return self._checkIntVariable('bulk')
def useForce(self):
"""Check if the request specifies a forced operation.
return self._checkIntVariable('force')
def dryRun(self):
"""Check if the request specifies dry-run mode.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment