Revision 94cdfa4a
b/lib/rapi/rlib2.py | ||
---|---|---|
441 | 441 |
instance_name = self.items[0] |
442 | 442 |
reboot_type = self.queryargs.get('type', |
443 | 443 |
[constants.INSTANCE_REBOOT_HARD])[0] |
444 |
ignore_secondaries = bool(self.queryargs.get('ignore_secondaries', |
|
445 |
[False])[0]) |
|
444 |
ignore_secondaries = bool(self._checkIntVariable('ignore_secondaries')) |
|
446 | 445 |
op = opcodes.OpRebootInstance(instance_name=instance_name, |
447 | 446 |
reboot_type=reboot_type, |
448 | 447 |
ignore_secondaries=ignore_secondaries) |
... | ... | |
467 | 466 |
|
468 | 467 |
""" |
469 | 468 |
instance_name = self.items[0] |
470 |
force_startup = bool(self.queryargs.get('force', [False])[0])
|
|
469 |
force_startup = bool(self._checkIntVariable('force'))
|
|
471 | 470 |
op = opcodes.OpStartupInstance(instance_name=instance_name, |
472 | 471 |
force=force_startup) |
473 | 472 |
|
Also available in: Unified diff