Fix: await log stream
parent
2433731128
commit
862faec502
|
|
@ -1652,7 +1652,7 @@ class Kubernetes {
|
|||
previous: true,
|
||||
};
|
||||
try {
|
||||
const resultError = yield new Promise((resolve) => new client_node_1.Log(this.kubeConfig).log(this.namespace, this.podName, this.containerName, stream, resolve, logOptions));
|
||||
const resultError = yield new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { return new client_node_1.Log(this.kubeConfig).log(this.namespace, this.podName, this.containerName, stream, resolve, logOptions); }));
|
||||
if (resultError) {
|
||||
throw resultError;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -447,7 +447,7 @@ class Kubernetes implements RemoteBuilderProviderInterface {
|
|||
previous: true,
|
||||
};
|
||||
try {
|
||||
const resultError = await new Promise((resolve) =>
|
||||
const resultError = await new Promise(async (resolve) =>
|
||||
new Log(this.kubeConfig).log(this.namespace, this.podName, this.containerName, stream, resolve, logOptions),
|
||||
);
|
||||
if (resultError) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue