Skip to content

Commit

Permalink
Revert "test(gce): add logs for debug"
Browse files Browse the repository at this point in the history
This reverts commit c4ca6f2.
  • Loading branch information
edgarulg committed Oct 3, 2024
1 parent 99870e6 commit 70f674c
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,10 @@ class GceDiskConfigurerController implements IComponentController {
constructor(public $scope: IScope) {}

public $onInit(): void {
/* eslint-disable no-console */
console.log('init persistDisk component');
/* eslint-enable no-console */
this.setLocalSSDCount();
this.setPersistentDisks();

if (this.getLocalSSDDisks().length && !this.command?.viewState?.instanceTypeDetails?.storage?.localSSDSupported) {
/* eslint-disable no-console */
console.log('updating disks on init ', this.sortDisks(this.getPersistentDisks()));
/* eslint-enable no-console */
this.updateDisks({ disks: this.sortDisks(this.getPersistentDisks()) });
}

Expand Down Expand Up @@ -59,13 +53,7 @@ class GceDiskConfigurerController implements IComponentController {

public handlePersistentDiskChange(): void {
let disks = this.persistentDisks.concat(this.getLocalSSDDisks());
/* eslint-disable no-console */
console.log('handle persist disk change, before sort', disks);
/* eslint-enable no-console */
disks = this.sortDisks(disks);
/* eslint-disable no-console */
console.log('handle persist disk change, after sort', disks);
/* eslint-enable no-console */
this.updateDisks({ disks });
}

Expand Down Expand Up @@ -99,9 +87,6 @@ class GceDiskConfigurerController implements IComponentController {
const diskWithoutImage = disks.find(
(disk) => (disk.type.startsWith('pd-') || disk.type.startsWith('hyperdisk-')) && disk.sourceImage === undefined,
);
/* eslint-disable no-console */
console.log('in sort,', disks, diskWithoutImage);
/* eslint-enable no-console */
return [diskWithoutImage].concat(without(disks, diskWithoutImage));
}

Expand All @@ -110,9 +95,6 @@ class GceDiskConfigurerController implements IComponentController {
}

private getPersistentDisks(): IGceDisk[] {
/* eslint-disable no-console */
console.log('getting persist disks ', this.command.disks);
/* eslint-enable no-console */
return (this.command.disks || []).filter(
(disk: IGceDisk) => disk.type.startsWith('pd-') || disk.type.startsWith('hyperdisk-'),
);
Expand Down

0 comments on commit 70f674c

Please sign in to comment.