()
| 80 | |
| 81 | |
| 82 | def get_libvirt_connection(): |
| 83 | conn = libvirt.openReadOnly(driver) |
| 84 | if not conn: |
| 85 | raise Exception('Failed to open connection to the hypervisor') |
| 86 | |
| 87 | return conn |
| 88 | |
| 89 | |
| 90 | def virshlist(states): |
no outgoing calls
no test coverage detected