diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts index e571f48..f1c587c 100644 --- a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts +++ b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts @@ -651,14 +651,6 @@ export class DeployImageComponent implements OnInit { : this.buildMonolithicOgInstructions(); } - private getTargetClients(): any[] { - if (this.selectedClients.length) { - return this.selectedClients; - } - return this.selectedModelClient ? [this.selectedModelClient] : []; - } - - private getProto(method: string | null): string { switch (method) { case 'uftp-direct': @@ -711,14 +703,7 @@ export class DeployImageComponent implements OnInit { ? ['updateCache', repo, `/${imgname}.img`, proto, protoOpt].filter(a => a !== '').join(' ') : ['deployImage', repo, imgname, disk, par, proto, protoOpt].filter(a => a !== '').join(' '); - const clients = this.getTargetClients(); - const targets = clients.length ? clients : [{ name: '', ip: '' }]; - - return targets.map(client => - `# Cliente ${client.name || client.ip} (${client.ip || ''})\n` + - `${scriptName} ${restaurarArgs}\n` + - ` ↳ ${innerCommand}` - ).join('\n\n'); + return `${scriptName} ${restaurarArgs}\n ↳ ${innerCommand}`; } private buildGitOgInstructions(): string { @@ -729,16 +714,8 @@ export class DeployImageComponent implements OnInit { const branch = this.selectedBranch || ''; const commit = this.selectedCommit?.hexsha || ''; - const command = - `RestaurarImagenGit --disk ${disk} --partition ${par} --repository ${repo} ` + + return `RestaurarImagenGit --disk ${disk} --partition ${par} --repository ${repo} ` + `--image-name ${imageName} --branch ${branch} --commit ${commit}`; - - const clients = this.getTargetClients(); - const targets = clients.length ? clients : [{ name: '', ip: '' }]; - - return targets.map(client => - `# Cliente ${client.name || client.ip} (${client.ip || ''})\n${command}` - ).join('\n\n'); }