Enhance request attach disk to take more than one disk#401
Enhance request attach disk to take more than one disk#401toubs13 wants to merge 1 commit intofog:masterfrom
Conversation
There was a problem hiding this comment.
Layout/EmptyLines: Extra blank line detected.
Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.
There was a problem hiding this comment.
Layout/DefEndAlignment: end at 115, 0 is not aligned with def at 106, 2.
test/models/compute/test_server.rb
Outdated
There was a problem hiding this comment.
Layout/IndentationConsistency: Inconsistent indentation detected.
e5da454 to
d49ff50
Compare
d49ff50 to
71d269c
Compare
| msg = "Attaching Data Disk #{disk_names.join(', ')} to Virtual Machine #{vm_name} in Resource Group #{vm_resource_group}" | ||
| Fog::Logger.debug msg | ||
| vm = get_virtual_machine_instance(vm_resource_group, vm_name) | ||
| lun = get_logical_unit_number(vm.storage_profile.data_disks) |
There was a problem hiding this comment.
| lun = get_logical_unit_number(vm.storage_profile.data_disks) | |
| lun = get_logical_unit_number(vm.storage_profile.data_disks) |
This line is causing your PR to fail. Since in your code, you are getting the value of LUN only once, it throws an exception when it tries to add a new data disk to that same LUN.
|
Hi @KevinLoiseau Regards |
|
Hello @maham-nazir-confiz, thanks to take care of this PR. As it's not my PR I will not fix it, but I will raise the information to @toubs13 and help him if it's needed. Regards, |
|
Hi @toubs13 Regards |
Hi !
In this PR I enable the possibility to attach more than one managed disk on the same request.
Thanks in advance for your time