mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-21 02:01:35 +00:00
Fix docker-util using incorrect reference for function
Change-type: patch Signed-off-by: Miguel Casqueira <miguel@balena.io>
This commit is contained in:
parent
dd2ff8f9a3
commit
3b3babfd62
@ -188,7 +188,7 @@ export async function fetchDeltaWithProgress(
|
||||
} catch (e) {
|
||||
if (e instanceof OutOfSyncError) {
|
||||
logFn('Falling back to regular pull due to delta out of sync error');
|
||||
return await this.fetchImageWithProgress(imgDest, deltaOpts, onProgress);
|
||||
return await fetchImageWithProgress(imgDest, deltaOpts, onProgress);
|
||||
} else {
|
||||
logFn(`Delta failed with ${e}`);
|
||||
throw e;
|
||||
@ -219,7 +219,7 @@ export async function fetchImageWithProgress(
|
||||
}
|
||||
|
||||
export async function getImageEnv(id: string): Promise<EnvVarObject> {
|
||||
const inspect = await this.getImage(id).inspect();
|
||||
const inspect = await docker.getImage(id).inspect();
|
||||
|
||||
try {
|
||||
return envArrayToObject(_.get(inspect, ['Config', 'Env'], []));
|
||||
@ -234,7 +234,7 @@ export async function getNetworkGateway(networkName: string): Promise<string> {
|
||||
return '127.0.0.1';
|
||||
}
|
||||
|
||||
const network = await this.getNetwork(networkName).inspect();
|
||||
const network = await docker.getNetwork(networkName).inspect();
|
||||
const config = _.get(network, ['IPAM', 'Config', '0']);
|
||||
if (config != null) {
|
||||
if (config.Gateway != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user