mirror of
https://github.com/retspen/webvirtcloud
synced 2024-10-31 19:44:16 +00:00
Fix pep8 errors
This commit is contained in:
parent
ee2b97d62f
commit
e1d3be17f1
3 changed files with 3 additions and 3 deletions
|
@ -9,4 +9,4 @@ register = template.Library()
|
|||
def ssh_to_fingerprint(line):
|
||||
key = base64.b64decode(line.strip().split()[1].encode('ascii'))
|
||||
fp_plain = hashlib.md5(key).hexdigest()
|
||||
return ':'.join(a+b for a, b in zip(fp_plain[::2], fp_plain[1::2]))
|
||||
return ':'.join(a + b for a, b in zip(fp_plain[::2], fp_plain[1::2]))
|
||||
|
|
|
@ -103,7 +103,7 @@ def instances(request):
|
|||
conn.start(name)
|
||||
addlogmsg(request.user.username, instance.name, msg)
|
||||
return HttpResponseRedirect(request.get_full_path())
|
||||
|
||||
|
||||
if 'getvvfile' in request.POST:
|
||||
msg = _("Send console.vv file")
|
||||
addlogmsg(request.user.username, instance.name, msg)
|
||||
|
|
|
@ -81,7 +81,7 @@ class wvmInstances(wvmConnect):
|
|||
dom = self.get_instance(name)
|
||||
xml = dom.XMLDesc(VIR_DOMAIN_XML_SECURE)
|
||||
self.wvm.defineXML(xml)
|
||||
|
||||
|
||||
def graphics_type(self, name):
|
||||
inst = self.get_instance(name)
|
||||
console_type = util.get_xml_path(inst.XMLDesc(0), "/domain/devices/graphics/@type")
|
||||
|
|
Loading…
Reference in a new issue