Skip to content

Commit

Permalink
Simplify "increaseDiskSize" method
Browse files Browse the repository at this point in the history
Signed-off-by: Leonid Belenkiy <cozies_archway.0b@icloud.com>
  • Loading branch information
unbreakabl3 committed Oct 28, 2024
1 parent 24202ea commit 28efc20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions disk_management/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<parent>
<groupId>com.vmware.pscoe.o11n</groupId>
<artifactId>typescript-project-all</artifactId>
<version>2.43.0</version>
<version>2.44.0</version>
</parent>

<groupId>com.clouddepth</groupId>
<artifactId>disk_management</artifactId>
<version>1.0.137</version>
<version>1.0.138</version>
<packaging>package</packaging>

<scm>
Expand Down
6 changes: 1 addition & 5 deletions disk_management/src/actions/diskManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ export class DiskManagement {
spec.deviceChange[0].device.controllerKey = diskToIncrease.controllerKey;
spec.deviceChange[0].device.unitNumber = diskToIncrease.unitNumber;
spec.deviceChange[0].device.key = diskToIncrease.key;
//@ts-ignore
spec.deviceChange[0].device.backing = new VcVirtualDiskFlatVer2BackingInfo();
//@ts-ignore
spec.deviceChange[0].device.backing.fileName = diskToIncrease.backing.fileName;
//@ts-ignore
spec.deviceChange[0].device.backing.diskMode = diskToIncrease.backing.diskMode;
spec.deviceChange[0].device.backing = diskToIncrease.backing;
//@ts-ignore
spec.deviceChange[0].device.capacityInKB = newSizeKB;
return spec;
Expand Down
2 changes: 1 addition & 1 deletion disk_management/src/license/THIRD-PARTY.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
# Please fill the missing licenses for dependencies :
#
#
#Thu Oct 24 15:10:42 CEST 2024
#Mon Oct 28 15:34:45 CET 2024
classworlds--classworlds--1.1-alpha-2=
org.codehaus.plexus--plexus-container-default--1.0-alpha-9-stable-1=

0 comments on commit 28efc20

Please sign in to comment.