{"action":"opened","issue":{"url":"https://api.github.com/repos/tessel/t2-cli/issues/246","labels_url":"https://api.github.com/repos/tessel/t2-cli/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/tessel/t2-cli/issues/246/comments","events_url":"https://api.github.com/repos/tessel/t2-cli/issues/246/events","html_url":"https://github.com/tessel/t2-cli/issues/246","id":100169679,"number":246,"title":"TODO: No usb controller found on this system.","user":{"login":"Student007","id":5132566,"avatar_url":"https://avatars.githubusercontent.com/u/5132566?v=3","gravatar_id":"","url":"https://api.github.com/users/Student007","html_url":"https://github.com/Student007","followers_url":"https://api.github.com/users/Student007/followers","following_url":"https://api.github.com/users/Student007/following{/other_user}","gists_url":"https://api.github.com/users/Student007/gists{/gist_id}","starred_url":"https://api.github.com/users/Student007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Student007/subscriptions","organizations_url":"https://api.github.com/users/Student007/orgs","repos_url":"https://api.github.com/users/Student007/repos","events_url":"https://api.github.com/users/Student007/events{/privacy}","received_events_url":"https://api.github.com/users/Student007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-10T21:14:12Z","updated_at":"2015-08-10T21:14:12Z","closed_at":null,"body":"While building a Vagrant box to be clean for testing deployment my self, I stumbled over a thing needs to be fixed sometimes later. Not to forget, I file an issue :smile: \r\n```\r\nWARNING: No usb controller found on this system.\r\nINFO Searching for nearby Tessels...\r\n/home/vagrant/app/t2-cli-t2-root/lib/usb_connection.js:232\r\n  usb.getDeviceList().forEach(deviceInspector);\r\n     ^\r\nTypeError: Cannot read property 'getDeviceList' of undefined\r\n    at USB.Scanner.start (/home/vagrant/app/t2-cli-t2-root/lib/usb_connection.js:232:6)\r\n    at processImmediate [as _immediateCallback] (timers.js:367:17)\r\n\r\n```\r\nIt needs a change [here](https://github.com/tessel/t2-cli/blob/master/lib/usb_connection.js#L9-14)\r\nor [here](https://github.com/tessel/t2-cli/blob/master/lib/usb_connection.js#L232). Maybe a simple \r\n\r\n```\r\nif(haveusb){\r\n    usb.getDeviceList().forEach(deviceInspector);\r\n    usb.on('attach', deviceInspector);\r\n  } else {\r\n      console.warn('WARNING: No usb controller found on this system.');\r\n\r\n  }\r\n```\r\nis enough  [here](https://github.com/tessel/t2-cli/blob/master/lib/usb_connection.js#L232)?"}}