theforeman / foreman_fog_proxmox

Foreman plugin to add Proxmox compute resource based on fog-proxmox gem
GNU General Public License v3.0
106 stars 31 forks source link

Fixes ActionView::Template::Error vm_type Error #151

Closed Manisha15 closed 4 years ago

Manisha15 commented 4 years ago

Fixes Issue: https://github.com/theforeman/foreman_fog_proxmox/issues/150

tristanrobert commented 4 years ago

Thank you for your PR. I understand your need but first I need to analyze and test why you need to rollback this feature. I need to test what is exactly your bug before to merge or not.

Manisha15 commented 4 years ago

To produce the error you can pull my PR https://github.com/theforeman/foreman_bootdisk/pull/90 and try to create proxmox host using bootdisk as provision method on foreman with foreman_fog_proxmox > 0.9.x or @hakong also have same error and mentioned the way to produce it. TIA.

tristanrobert commented 4 years ago

ok @Manisha15 I will try your PR and test your bug.

sbernhard commented 4 years ago

@tristanrobert , did you have the time to test the PR from @Manisha15? How can we help to get this done as it blocks the change in foreman_bootdisk, too.

Manisha15 commented 4 years ago

ok @Manisha15 I will try your PR and test your bug.

Hello @tristanrobert, Did you get the time to check this PR? It would be helpful if you can review this, so that the other blocked PR can also get merged. TIA

tristanrobert commented 4 years ago

@Manisha15 could you please complete your PR by deleting the two functions: vm_type(host) and node_id(host) in proxmox_vm_helper.rb. They are only used in _add_vm_type_to_nic_provider_specific_form.html.erb

Manisha15 commented 4 years ago

@Manisha15 could you please complete your PR by deleting the two functions: vm_type(host) and node_id(host) in proxmox_vm_helper.rb. They are only used in _add_vm_type_to_nic_provider_specific_form.html.erb

Done !

tristanrobert commented 4 years ago

You have introduced a syntax error on proxmox_compute_attributes.rb file at line 57: delete the colon : at the end of the line. See CI build logs.

sbernhard commented 4 years ago

done :)

tristanrobert commented 4 years ago

Thank you @sbernhard and @Manisha15 !