Recover the instance
(self, apiclient)
| 793 | raise Exception(response[1]) |
| 794 | |
| 795 | def recover(self, apiclient): |
| 796 | """Recover the instance""" |
| 797 | cmd = recoverVirtualMachine.recoverVirtualMachineCmd() |
| 798 | cmd.id = self.id |
| 799 | apiclient.recoverVirtualMachine(cmd) |
| 800 | |
| 801 | response = self.getState(apiclient, VirtualMachine.STOPPED) |
| 802 | if response[0] == FAIL: |
| 803 | raise Exception(response[1]) |
| 804 | |
| 805 | def restore(self, apiclient, templateid=None, diskofferingid=None, rootdisksize=None, expunge=None, details=None): |
| 806 | """Restore the instance""" |
nothing calls this directly
no test coverage detected