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

Assets precompile errors #191

Closed tristanrobert closed 3 years ago

tristanrobert commented 3 years ago

bundle exec bin/rake plugin:assets:precompile[foreman_fog_proxmox] RAILS_ENV=production DATABASE_URL=nulldb://nohost

https://github.com/theforeman/foreman-packaging/pull/6454

https://ci.theforeman.org/job/packaging_build_deb_plugin/arch=x86,label=debian,os=bionic/728/console

12:30:19 Uglifier::Error: Unexpected token: name (volume_id). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true). 12:30:19 -- 12:30:19  19 var index_id = $(item).attr('id'); 12:30:19  20 var pattern = /(host_compute_attributes_volumesattributes||compute_attribute_vm_attrs_volumesattributes)(\d+)_/i; 12:30:19  21 pattern_a = pattern.exec(index_id); 12:30:19  22 var index = pattern_a[2]; 12:30:19  23 return index; 12:30:19  24 } 12:30:19  25 12:30:19  26 function volumeId(type,index){ 12:30:19  =>  let volumeid = '#volume' + type + '_' + index; 12:30:19  28 return volume_id; 12:30:19  29 } 12:30:19  30 12:30:19  31 function enableField(item) { 12:30:19  32 $(item).show(); 12:30:19  33 $(item).removeAttr('disabled'); 12:30:19  34 } 12:30:19  35

ES6 syntax not suitable with foreman in production.