theforeman / foreman_fog_proxmox

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

Updating Proxmox LXC container host fails with no implicit conversion of nil into String #261

Closed Manisha15 closed 1 year ago

Manisha15 commented 1 year ago

When Updating Foreman Host with proxmox LXC Container it fails with following error:


06:37:06 rails.1   | 2023-05-04T06:37:06 [I|app|85329b91] Backtrace for 'Failed to update a compute Proxmox (Proxmox) instance lori-blind.example.com: no implicit conversion of nil into String' error (TypeError): no implicit conversion of nil into String
06:37:06 rails.1   |  85329b91 | /home/vagrant/foreman_fog_proxmox/app/models/foreman_fog_proxmox/proxmox_volumes.rb:128:in '+'
06:37:06 rails.1   |  85329b91 | /home/vagrant/foreman_fog_proxmox/app/models/foreman_fog_proxmox/proxmox_volumes.rb:128:in 'extract_id'
06:37:06 rails.1   |  85329b91 | /home/vagrant/foreman_fog_proxmox/app/models/foreman_fog_proxmox/proxmox_volumes.rb:152:in 'save_volume'
06:37:06 rails.1   |  85329b91 | /home/vagrant/foreman_fog_proxmox/app/models/foreman_fog_proxmox/proxmox_vm_commands.rb:100:in 'block in save_vm'
06:37:06 rails.1   |  85329b91 | /home/vagrant/foreman_fog_proxmox/app/models/foreman_fog_proxmox/proxmox_vm_commands.rb:100:in 'each_value'
06:37:06 rails.1   |  85329b91 | /home/vagrant/foreman_fog_proxmox/app/models/foreman_fog_proxmox/proxmox_vm_commands.rb:100:in 'save_vm'
06:37:06 rails.1   |  85329b91 | /home/vagrant/foreman_fog_proxmox/app/models/concerns/orchestration/proxmox/compute.rb:32:in 'setComputeUpdate'```

I am using Foreman 3.6 with foreman_fog_proxmox 0.14.2