Skip to content

Instantly share code, notes, and snippets.

@alram
Created July 2, 2012 19:38
Show Gist options
  • Save alram/3035208 to your computer and use it in GitHub Desktop.
Save alram/3035208 to your computer and use it in GitHub Desktop.
vmadm - support multiple cdrom options
29c29
< var VM = require('/opt/vm/node_modules/VM');
---
> var VM = require('VM');
231,238c231
< if(key === 'cdrom') {
< if(!parsed[key]) {
< parsed[key] = [];
< }
< parsed[key].push(val);
< } else {
< parsed[key] = val;
< }
---
> parsed[key] = val;
260,261d252
< for(var i=0; i<parsed[key].length; i++) {
< val = parsed[key][i];
275d265
< }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment