Patch awaiting response when checking if supervisor0 network exists

Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
This commit is contained in:
Miguel Casqueira 2021-05-06 14:41:32 +00:00
parent 662b27c26d
commit 8b0c2347d8

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) {