Created
July 2, 2012 19:38
-
-
Save alram/3035208 to your computer and use it in GitHub Desktop.
vmadm - support multiple cdrom options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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