Add custom options to bsub (vnc)

Hi Jeff,
Thank you for investigating. I confirm that it doesn’t submit with the specified options (as checked in /var/log/ondemand-nginx/$USER/error.log).
I’ve also tried to replace bc_num_slots with a custom variable as you proposed - however I get the following error message.


Do I have to replace bc_num_slots in some other files too?
So far I have just replaced them in form.yml and submit.yml.erb.

form.yml:

---
attributes:
  desktop: "mate"
  bc_vnc_idle: 0
  bc_vnc_resolution:
    required: true
  node_type: null
  ood_var_mem:
    required: true
    label: "Memory"
    value: 1
  ood_var_slots:
    required: true
    label: "Slots"
    value: 1

form:
  - bc_vnc_idle
  - desktop
  - bc_account
  - bc_num_hours
  - ood_var_mem
  - ood_var_slots
  - node_type
  - bc_queue
  - bc_vnc_resolution
  - bc_email_on_started

submit.yml.erb:

---
batch_connect:
  template: vnc
script:
  native:
    - "-M"
    - "<% ood_var_mem.blank? ? 1 : ood_var_mem.to_i %>"
    - "-n"
    - "<% ood_var_slots.blank? ? 1 : ood_var_slots.to_i %>"