mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-14 14:36:36 +00:00
Fix the error that comes up when no ip addresses are returned by gosuper
This commit is contained in:
parent
e7ef7e86ef
commit
51ee79b7a2
@ -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…
x
Reference in New Issue
Block a user