fog / fog-proxmox

Fog module for Proxmox VE Platform
GNU General Public License v3.0
31 stars 14 forks source link

Add overwrited persisted? method to proxmox server #33

Closed tristanrobert closed 6 years ago

tristanrobert commented 6 years ago

To create a vm, foreman uses vm_exists? from app/models/concerns/orchestration/compute.rb which uses persisted? from app/models/concerns/fog_extensions/model.rb which uses !!identity from fog. The issue is that proxmox requires vmid to be submitted by the client in order to create a new vm. vmid is the identity attribute. So it is always persisted to foreman. To resolve it, it is necessary to overwrite persisted? method.

tristanrobert commented 6 years ago

Resolved in foreman_proxmox