Commit b939de46 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

baserlib: Use boolean type for boolean variables

This does not yet fix all issues in the RAPI interface which were
introduced with the type system. More testing is needed.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent d9bdffc3
......@@ -354,22 +354,22 @@ class R_Generic(object):
"""Check if the request specifies locking.
return self._checkIntVariable('lock')
return bool(self._checkIntVariable("lock"))
def useBulk(self):
"""Check if the request specifies bulk querying.
return self._checkIntVariable('bulk')
return bool(self._checkIntVariable("bulk"))
def useForce(self):
"""Check if the request specifies a forced operation.
return self._checkIntVariable('force')
return bool(self._checkIntVariable("force"))
def dryRun(self):
"""Check if the request specifies dry-run mode.
return self._checkIntVariable('dry-run')
return bool(self._checkIntVariable("dry-run"))
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