Reboot the instance
(self, apiclient, forced=None)
| 781 | return |
| 782 | |
| 783 | def reboot(self, apiclient, forced=None): |
| 784 | """Reboot the instance""" |
| 785 | cmd = rebootVirtualMachine.rebootVirtualMachineCmd() |
| 786 | cmd.id = self.id |
| 787 | if forced: |
| 788 | cmd.forced = forced |
| 789 | apiclient.rebootVirtualMachine(cmd) |
| 790 | |
| 791 | response = self.getState(apiclient, VirtualMachine.RUNNING) |
| 792 | if response[0] == FAIL: |
| 793 | raise Exception(response[1]) |
| 794 | |
| 795 | def recover(self, apiclient): |
| 796 | """Recover the instance""" |
nothing calls this directly
no test coverage detected