Skip to content
Snippets Groups Projects
Commit 26ece371 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

LUInstanceCreate: self.disks is a dict not a disk object


Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent fb782f5b
No related branches found
No related tags found
No related merge requests found
...@@ -9640,7 +9640,7 @@ class LUInstanceCreate(LogicalUnit): ...@@ -9640,7 +9640,7 @@ class LUInstanceCreate(LogicalUnit):
constants.ISPEC_MEM_SIZE: self.be_full.get(constants.BE_MAXMEM, None), constants.ISPEC_MEM_SIZE: self.be_full.get(constants.BE_MAXMEM, None),
constants.ISPEC_CPU_COUNT: self.be_full.get(constants.BE_VCPUS, None), constants.ISPEC_CPU_COUNT: self.be_full.get(constants.BE_VCPUS, None),
constants.ISPEC_DISK_COUNT: len(self.disks), constants.ISPEC_DISK_COUNT: len(self.disks),
constants.ISPEC_DISK_SIZE: [disk.size for disk in self.disks], constants.ISPEC_DISK_SIZE: [disk["size"] for disk in self.disks],
constants.ISPEC_NIC_COUNT: len(self.nics), constants.ISPEC_NIC_COUNT: len(self.nics),
} }
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment