-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix provisioning dialog 'src_vm_id' method #145
Fix provisioning dialog 'src_vm_id' method #145
Conversation
The 'allowed_templates' method is a core method to generate a list of templates for the selection dialog. This is explicitly necessary when creating a catalog item since the user selects the template after entering into the request dialog (in contrast to the 'Lifecycle > Provision VMs using this Template' which auto-selects the template). Without this, the following exception is raised when attempting to definite a Power HMC VM provision catalog item: FATAL -- : Error caught: [NoMethodError] undefined method `any?' for nil:NilClass
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.
@agrare Please also review. I wonder if there's a way to catch this with specs?
Checked commit jaywcarman@41cbe2b with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint |
Yeah we've been bitten by these content dialog files before, I'm not sure how best to test them since they are processed by the UI controllers |
Would love to add this, but wasn't sure how to write specs for the dialog itself. We currently have specs for the HMC |
I'm going to merge this anyway, since we'll have to come up with a way to do specs more comprehensively. |
Backported to
|
…rc_vm_id_method Fix provisioning dialog 'src_vm_id' method (cherry picked from commit 8713488)
The 'allowed_templates' method is a core method to generate a list of
templates for the selection dialog. This is explicitly necessary when
creating a catalog item since the user selects the template after
entering into the request dialog (in contrast to the 'Lifecycle >
Provision VMs using this Template' which auto-selects the template).
Without this, the following exception is raised when attempting to
definite a Power HMC VM provision catalog item:
FATAL -- : Error caught: [NoMethodError] undefined method `any?' for nil:NilClass