Skip to content

Commit 20f6a85

Browse files
committed
fix dogfood test issue
1 parent c7dc4cc commit 20f6a85

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests/ServiceManagementCmdletTestHelper.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,14 +1598,16 @@ public string GetAzureVMImageName(string[] keywords, bool exactMatch = true, int
15981598
{
15991599
if (Utilities.MatchKeywords(image.ImageName, keywords, exactMatch) >= 0
16001600
&& ((diskSize == null) || (image.LogicalSizeInGB <= diskSize))
1601-
&& image.Location.Contains(CredentialHelper.Location))
1601+
&& image.Location.Contains(CredentialHelper.Location)
1602+
&& image.ImageFamily.Contains("Server"))
16021603
return image.ImageName;
16031604
}
16041605
foreach (SM.OSImageContext image in vmImages)
16051606
{
16061607
if (Utilities.MatchKeywords(image.OS, keywords, exactMatch) >= 0
16071608
&& ((diskSize == null) || (image.LogicalSizeInGB <= diskSize))
1608-
&& image.Location.Contains(CredentialHelper.Location))
1609+
&& image.Location.Contains(CredentialHelper.Location)
1610+
&& image.ImageFamily.Contains("Server"))
16091611
return image.ImageName;
16101612
}
16111613
return null;

0 commit comments

Comments
 (0)