Start the instance
(self, apiclient)
| 759 | return VirtualMachine(virtual_machine.__dict__, services) |
| 760 | |
| 761 | def start(self, apiclient): |
| 762 | """Start the instance""" |
| 763 | cmd = startVirtualMachine.startVirtualMachineCmd() |
| 764 | cmd.id = self.id |
| 765 | apiclient.startVirtualMachine(cmd) |
| 766 | response = self.getState(apiclient, VirtualMachine.RUNNING) |
| 767 | if response[0] == FAIL: |
| 768 | raise Exception(response[1]) |
| 769 | return |
| 770 | |
| 771 | def stop(self, apiclient, forced=None): |
| 772 | """Stop the instance""" |
nothing calls this directly
no test coverage detected