mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-01 16:57:57 +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]
|
* Switched to docker-progress for pull progress. [Page]
|
||||||
* Fix semver versioning in tcp-ping endpoint. [Praneeth]
|
* Fix semver versioning in tcp-ping endpoint. [Praneeth]
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ knex.init.then ->
|
|||||||
|
|
||||||
updateIpAddr = ->
|
updateIpAddr = ->
|
||||||
callback = (error, response, body ) ->
|
callback = (error, response, body ) ->
|
||||||
if !error && response.statusCode == 200
|
if !error && response.statusCode == 200 && body.Data.IPAddresses?
|
||||||
device.updateState(
|
device.updateState(
|
||||||
ip_address: body.Data.IPAddresses.join(' ')
|
ip_address: body.Data.IPAddresses.join(' ')
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user