MCPcopy
hub / github.com/retspen/webvirtcloud / __connect_ssh

Method __connect_ssh

vrtManager/connection.py:156–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 self.connection = None
155
156 def __connect_ssh(self):
157 uri = 'qemu+ssh://%s@%s/system' % (self.login, self.host)
158
159 try:
160 self.connection = libvirt.open(uri)
161 self.last_error = None
162
163 except libvirtError as e:
164 self.last_error = 'Connection Failed: ' + str(e) + ' --- ' + repr(libvirt.virGetLastError())
165 self.connection = None
166
167 def __connect_tls(self):
168 flags = [libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE]

Callers 1

connectMethod · 0.95

Calls 1

openMethod · 0.80

Tested by

no test coverage detected