Fix the error that comes up when no ip addresses are returned by gosuper

This commit is contained in:
Praneeth Bodduluri 2015-11-10 20:09:03 +05:30
parent e7ef7e86ef
commit 51ee79b7a2
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(' ')
)