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
Allow specifying the datastore/network for OVF deployment. #670
Conversation
@@ -28,6 +28,7 @@ def deployment_spec(opts) | |||
|
|||
spec = {"accept_all_EULA" => opts[:accept_all_eula]} | |||
spec["name"] = opts[:vm_name] if opts[:vm_name].present? | |||
spec["default_datastore_id"] = Storage.find_by(:id => opts[:storage_id]).ems_ref if opts[:storage_id].present? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be setting an ems_ref to an _id
property? Also if the find_by
returns nil .ems_ref
is going to blow up, recommend .find_by()&.ems_ref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default_datastore_id
is the name that VMware uses. MIQ saves it as ems_ref
for a storage.
@@ -45,7 +46,8 @@ | |||
:accept_all_eula => true, | |||
:resource_pool_id => "2", | |||
:ems_folder_id => "3", | |||
:host_id => "1" | |||
:host_id => "1", | |||
:storage_id => "1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacing?
7a20f77
to
5532656
Compare
6dc9cef
to
a32137f
Compare
a32137f
to
cc74215
Compare
cc74215
to
d06dab3
Compare
Checked commit lfu@d06dab3 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint |
@agrare @gtanzillo Please take a final review. |
Allow specifying the datastore/network for OVF deployment. (cherry picked from commit 6fb67cd)
Kasparov backport details:
|
Allow the user to specify the datastore/network for the OVF deployment when creating the service template or through the service dialog.
Depends on ManageIQ/manageiq-ui-classic#7521.
Depends on #671.
@miq-bot add_label enhancement