mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-21 03:55:23 +00:00
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:
commit
f483f93211
@ -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]
|
||||
|
||||
|
@ -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(' ')
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user