fix(cloudly-client): correct Cloudly request handling for cluster config, cluster updates, and image pushes
This commit is contained in:
+4
-1
@@ -86,9 +86,12 @@ export class Image implements plugins.servezoneInterfaces.data.IImage {
|
||||
const response = await pushImageTR.fire({
|
||||
identity: this.cloudlyClientRef.identity,
|
||||
imageId: this.id,
|
||||
versionString: '',
|
||||
versionString: imageVersion,
|
||||
imageStream: virtualStream,
|
||||
});
|
||||
if (!response.allowed) {
|
||||
throw new Error(`Cloudly rejected image push for ${this.id}:${imageVersion}`);
|
||||
}
|
||||
await virtualStream.readFromWebstream(imageReadableArg);
|
||||
await this.update();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user