Skip to content

Commit 03f8cd9

Browse files
psingla1210Prachi Singla
andauthored
Users/prachisingla/fix disk path issue (#200)
* Fixing small diskpath issue and upgrading version * vc version --------- Co-authored-by: Prachi Singla <[email protected]>
1 parent 45e8791 commit 03f8cd9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pipelines/azure-pipelines-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resources:
1616
options: --entrypoint=""
1717

1818
variables:
19-
VcVersion : 1.11.8
19+
VcVersion : 1.11.9
2020
ROOT: $(Build.SourcesDirectory)
2121
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
2222
ENABLE_PRS_DELAYSIGN: 1

.pipelines/azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pool:
1818
vmImage: windows-latest
1919

2020
variables:
21-
VcVersion : 1.11.8
21+
VcVersion : 1.11.9
2222
ROOT: $(Build.SourcesDirectory)
2323
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
2424
ENABLE_PRS_DELAYSIGN: 1

src/VirtualClient/VirtualClient.Contracts/DiskExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public static bool PathEquals(this Disk disk, string path)
200200

201201
if (disk.Volumes?.Any() == true)
202202
{
203-
volumeMatchDevicePath = disk.Volumes.Any(v => string.Equals(v.DevicePath.TrimEnd('/', '\\', ':'), path, StringComparison.OrdinalIgnoreCase));
203+
volumeMatchDevicePath = disk.Volumes.Any(v => string.Equals(v.DevicePath?.TrimEnd('/', '\\', ':'), path, StringComparison.OrdinalIgnoreCase));
204204
volumeMatchAccessPath = disk.Volumes.Any(v => v.AccessPaths.Any(ap => string.Equals(ap.TrimEnd('/', '\\', ':'), path, StringComparison.OrdinalIgnoreCase)));
205205
}
206206

0 commit comments

Comments
 (0)