Merge pull request #1701 from balena-os/patch-supervisor-network-check

Patch awaiting response when checking if supervisor0 network exists
This commit is contained in:
bulldozer-balena[bot] 2021-05-06 16:47:11 +00:00 committed by GitHub
commit 34a702e4bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ export async function remove(network: Network) {
} }
export async function supervisorNetworkReady(): Promise<boolean> { export async function supervisorNetworkReady(): Promise<boolean> {
const networkExists = exists( const networkExists = await exists(
`/sys/class/net/${constants.supervisorNetworkInterface}`, `/sys/class/net/${constants.supervisorNetworkInterface}`,
); );
if (!networkExists) { if (!networkExists) {