Commit 94cdfa4a authored by Iustin Pop's avatar Iustin Pop
Browse files

Simplify handling of boolean args in rapi

This patch replaces hardcoded boolean-type args with
bool(_checkIntVariable). There should be no other cases of this left, I
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 97c61d46
......@@ -441,8 +441,7 @@ class R_2_instances_name_reboot(baserlib.R_Generic):
instance_name = self.items[0]
reboot_type = self.queryargs.get('type',
ignore_secondaries = bool(self.queryargs.get('ignore_secondaries',
ignore_secondaries = bool(self._checkIntVariable('ignore_secondaries'))
op = opcodes.OpRebootInstance(instance_name=instance_name,
......@@ -467,7 +466,7 @@ class R_2_instances_name_startup(baserlib.R_Generic):
instance_name = self.items[0]
force_startup = bool(self.queryargs.get('force', [False])[0])
force_startup = bool(self._checkIntVariable('force'))
op = opcodes.OpStartupInstance(instance_name=instance_name,
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