-
Notifications
You must be signed in to change notification settings - Fork 121
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
Refactor redhat_customizerequest method for VM Provisioning. #633
Refactor redhat_customizerequest method for VM Provisioning. #633
Conversation
2298d7f
to
37cb159
Compare
Pull Request Test Coverage Report for Build 4327
💛 - Coveralls |
e975b35
to
b40a519
Compare
b740e40
to
a9508a5
Compare
log(:info, "Inspecting prov.eligible_windows_images: #{prov.eligible_windows_images.inspect}") | ||
pxe_image = prov.eligible_windows_images.detect { |pi| pi.name.casecmp(template.name) == 0 } | ||
if pxe_image.nil? | ||
update_and_raise("Failed to find matching PXE Image") |
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.
The behavior before is to log in the file, update the object then raise an error.
Seems logging in the file is skipped here. Is it by intention?
a9508a5
to
a8547b2
Compare
Some comments on commits pkomanek/manageiq-content@0c5f6f3~...a8547b2 spec/content/automate/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods.class/methods/redhat_customizerequest_spec.rb
|
Checked commits pkomanek/manageiq-content@0c5f6f3~...a8547b2 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.20.0, and yamllint content/automate/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods.class/methods/redhat_customizerequest.rb
|
Method refactoring and creating tests.
This PR is based on the issue below.
ManageIQ/manageiq#12038
@miq-bot add_label refactoring
@miq-bot assign @tinaafitz