Quickfix again: Cast buffer to string when getting OS version. (Sorry)

This commit is contained in:
Pablo Carranza Velez 2016-01-27 17:17:53 +00:00
parent 8e4d5783e5
commit 3e3e2a8d99

View File

@ -181,7 +181,7 @@ exports.updateState = do ->
exports.getOSVersion = ->
fs.readFileAsync(config.hostOsVersionPath)
.then (releaseData) ->
lines = releaseData.split("\n")
lines = (new String(releaseData)).split("\n")
releaseItems = {}
for line in lines
[ key, val ] = line.split('=')