| Conditions | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more |
||
| 23 | def run(self, vm, delete_permanently): |
||
| 24 | si = self.si |
||
| 25 | |||
| 26 | vm_obj = vim.VirtualMachine(vm, stub=si._stub) |
||
| 27 | if delete_permanently: |
||
| 28 | task = vm_obj.Destroy_Task() |
||
| 29 | success = self._wait_for_task(task) |
||
| 30 | else: |
||
| 31 | vm_obj.UnregisterVM() |
||
| 32 | success = True |
||
| 33 | |||
| 34 | return {"success": success} |
||
| 35 |