mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Qemu VMs: only compute MD5 checksums for existing disks
This commit is contained in:
5 files changed
+18
-18
No files matched your search
@@ -115,7 +115,7 @@ class Drawing:
|
||||
|
||||
data = base64.decodebytes(data.split(",", 1)[1].encode())
|
||||
|
||||
# We compute an hash of the image file to avoid duplication
|
||||
# We compute a hash of the image file to avoid duplication
|
||||
filename = hashlib.md5(data).hexdigest() + "." + extension
|
||||
elem.set(href, filename)
|
||||
|
||||
|
||||
Reference in new issue
Block a user