Merge pull request #13 from resin-io/RES-1384-if-no-ip-addresses-are-returned

Fix the error that comes up when no ip addresses are returned by gosuper
This commit is contained in:
Praneeth 2015-11-16 21:05:07 +05:30
commit f483f93211
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
* Fix the error that comes up when no ip addresses are returned by gosuper [Praneeth]
* Switched to docker-progress for pull progress. [Page]
* Fix semver versioning in tcp-ping endpoint. [Praneeth]

View File

@ -43,7 +43,7 @@ knex.init.then ->
updateIpAddr = ->
callback = (error, response, body ) ->
if !error && response.statusCode == 200
if !error && response.statusCode == 200 && body.Data.IPAddresses?
device.updateState(
ip_address: body.Data.IPAddresses.join(' ')
)