fix(cloudly-client): correct Cloudly request handling for cluster config, cluster updates, and image pushes

This commit is contained in:
2026-05-08 11:15:11 +00:00
parent a1b1234aac
commit 080d163591
5 changed files with 17 additions and 6 deletions
+4 -1
View File
@@ -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();
};