-
Notifications
You must be signed in to change notification settings - Fork 898
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
Follow up to update_vm_name for Service template provisioning #16949
Follow up to update_vm_name for Service template provisioning #16949
Conversation
app/models/miq_provision.rb
Outdated
@@ -68,7 +68,7 @@ def update_vm_name(new_name, update_request: true) | |||
options[:vm_target_hostname] = get_hostname(new_name) | |||
|
|||
update_attributes(:description => self.class.get_description(self, new_name), :options => options) | |||
miq_request.update_description_from_tasks if update_request | |||
miq_request.update_description_from_tasks if update_request && miq_request.respond_to?(:update_description_from_tasks) |
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.
miq_request.try(:update_description_from_tasks) if update_request
?
a9b9580
to
ad1e960
Compare
Checked commit gmcculloug@ad1e960 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
…rvice Follow up to update_vm_name for Service template provisioning (cherry picked from commit cdb1271) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1539752
Fine backport details:
|
…rvice Follow up to update_vm_name for Service template provisioning (cherry picked from commit cdb1271) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1539750
Gaprindashvili backport details:
|
…_name_service Follow up to update_vm_name for Service template provisioning (cherry picked from commit cdb1271) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1539752
When provisioning a VM as part of a service the miq_provision task gets associated to a
service_template_provision_request
which does not have anupdate_description_from_tasks
method. In this case we want to skip calling theupdate_description_from_tasks
method if the request object does not expose it.Links
cc @syncrou