theforeman / foreman_fog_proxmox

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

VM creation using integers in API requests fails #215

Closed neomilium closed 1 year ago

neomilium commented 2 years ago

Describe the bug Using API and providing integer as attribute value raise the exception no implicit conversion of Integer into String.

To Reproduce Steps to reproduce the behavior:

  1. Craft an API request with integers as attribute value.
  2. Send request
  3. See error : 422 Net::HTTPUnprocessableEntity response with error message:
no implicit conversion of Integer into String

Expected behavior Support Integer and Strings as well.