Revision b939de46 lib/rapi/baserlib.py

b/lib/rapi/baserlib.py
354 354
    """Check if the request specifies locking.
355 355

  
356 356
    """
357
    return self._checkIntVariable('lock')
357
    return bool(self._checkIntVariable("lock"))
358 358

  
359 359
  def useBulk(self):
360 360
    """Check if the request specifies bulk querying.
361 361

  
362 362
    """
363
    return self._checkIntVariable('bulk')
363
    return bool(self._checkIntVariable("bulk"))
364 364

  
365 365
  def useForce(self):
366 366
    """Check if the request specifies a forced operation.
367 367

  
368 368
    """
369
    return self._checkIntVariable('force')
369
    return bool(self._checkIntVariable("force"))
370 370

  
371 371
  def dryRun(self):
372 372
    """Check if the request specifies dry-run mode.
373 373

  
374 374
    """
375
    return self._checkIntVariable('dry-run')
375
    return bool(self._checkIntVariable("dry-run"))

Also available in: Unified diff