Actions
Feature #22454
closedVMware: Validate user data template is valid yaml
Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
Description
We should validate the user data template is valid yaml before sending it to fog-vsphere to avoid confusing error messages.
| NoMethodError: undefined method `key?' for false:FalseClass
| /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-1.7.0/lib/fog/vsphere/requests/compute/cloudinit_to_customspec.rb:16:in `cloudinit_to_customspec'
| /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:487:in `clone_vm'
| /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:422:in `create_vm'
| /usr/share/foreman/app/models/concerns/orchestration/compute.rb:77:in `setCompute'
| /usr/share/foreman/app/models/concerns/orchestration.rb:216:in `execute'
| /usr/share/foreman/app/models/concerns/orchestration.rb:144:in `block in process'
| /usr/share/foreman/app/models/concerns/orchestration.rb:136:in `each'
| /usr/share/foreman/app/models/concerns/orchestration.rb:136:in `process'
| /usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'
Actions