Commit 6ff1e05a by Őry Máté

vm: fix locale-dependent method

string.lowercase: On most systems this is the string 'abcdefghijklmnopqrstuvwxyz'. The
specific value is locale-dependent, and will be updated when
locale.setlocale() is called.
parent 1479f83b
......@@ -520,7 +520,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
# Deploy virtual images
with act.sub_activity('deploying_disks'):
devnums = list(string.lowercase) # a-z
devnums = list(string.ascii_lowercase) # a-z
for disk in self.disks.all():
# assign device numbers
if disk.dev_num in devnums:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment