Skip to content

Commit

Permalink
Properly filter instances that have disks without licenses
Browse files Browse the repository at this point in the history
Change-Id: I04370ed8b0c990764b48ab58261253066221d05e
  • Loading branch information
Johannes Passing authored and jpassing committed Nov 12, 2019
1 parent e1a45da commit 5c4274b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ private static bool IsWindowsInstanceByLicense(Instance instance)
// has to have an associated Windows license. This is also true for
// BYOL'ed instances.
return instance.Disks
.Where(d => d.Licenses != null)
.SelectMany(d => d.Licenses)
.Any(l => l.StartsWith(WindowsCloudLicenses));
}
Expand Down

0 comments on commit 5c4274b

Please sign in to comment.