Skip to content

Commit

Permalink
NAS-128675: It is not possible to detach attached drive from boot poo…
Browse files Browse the repository at this point in the history
…l and got a traceback (#10102)
  • Loading branch information
undsoft authored May 24, 2024
1 parent 0e5fc9a commit fe455fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export class BootEnvReplaceFormComponent {
entityForm.submitFunction = this.submitFunction;
}
submitFunction(entityForm) {
const payload = this.pk.substring(5, this.pk.length);
return this.ws.call('boot.replace', [payload, entityForm.dev]);
return this.ws.call('boot.replace', [this.pk, entityForm.dev]);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export class BootStatusListComponent implements OnInit {
}

detach(disk: any) {
disk = disk.substring(5, disk.length);
this.loader.open();
this.busy = this.ws.call('boot.detach', [disk]).subscribe(
(res) => {
Expand Down

0 comments on commit fe455fe

Please sign in to comment.