Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B #1841 Improve error message when Import Wild or VM Template with disks without back reference #1849

Closed
wants to merge 2 commits into from

Conversation

joseangelgm
Copy link
Contributor

Apply 5.6

@@ -249,10 +249,22 @@ def import_vcenter_disks(vc_uuid, dpool, ipool, type, sunstone=false)
allocated_images = []

vc_disks.each do |disk|
datastore_found = VCenterDriver::Storage.get_one_image_ds_by_ref_and_dc(disk[:datastore]._ref,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good, just a style comment, please do not use so many empty lines. for instance, the begin rescue block should look:

begin
ds_ref = disk[:datastore]._ref
rescue
raise "The ISO #{disk[:path_wo_ds].name} cannot be found because the datastore was removed or deleted"
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants