Stop the instance
(self, apiclient, forced=None)
| 769 | return |
| 770 | |
| 771 | def stop(self, apiclient, forced=None): |
| 772 | """Stop the instance""" |
| 773 | cmd = stopVirtualMachine.stopVirtualMachineCmd() |
| 774 | cmd.id = self.id |
| 775 | if forced: |
| 776 | cmd.forced = forced |
| 777 | apiclient.stopVirtualMachine(cmd) |
| 778 | response = self.getState(apiclient, VirtualMachine.STOPPED) |
| 779 | if response[0] == FAIL: |
| 780 | raise Exception(response[1]) |
| 781 | return |
| 782 | |
| 783 | def reboot(self, apiclient, forced=None): |
| 784 | """Reboot the instance""" |
nothing calls this directly
no test coverage detected