Skip to content
Snippets Groups Projects
Commit 3427d34f authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

rapi: Add generic “force” parameter


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 3583908a
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,12 @@ This is useful in trying to determine (without guarantees though, as ...@@ -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 in the meantime the cluster state could have changed) if the operation
is likely to succeed or at least start executing. is likely to succeed or at least start executing.
``force``
+++++++++++
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 Usage examples
-------------- --------------
......
...@@ -279,6 +279,12 @@ class R_Generic(object): ...@@ -279,6 +279,12 @@ class R_Generic(object):
""" """
return self._checkIntVariable('bulk') return self._checkIntVariable('bulk')
def useForce(self):
"""Check if the request specifies a forced operation.
"""
return self._checkIntVariable('force')
def dryRun(self): def dryRun(self):
"""Check if the request specifies dry-run mode. """Check if the request specifies dry-run mode.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment