Skip to content

Commit

Permalink
Fix issue for PVS-Stduio (#14369)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youri970410 authored Mar 2, 2021
1 parent 455fabe commit f70d243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/KeyVault/KeyVault/Models/PSKeyVaultCertificatePolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ internal CertificatePolicy ToCertificatePolicy()
if (!string.IsNullOrWhiteSpace(SubjectName) ||
DnsNames != null ||
Ekus != null ||
KeyUsage != null |
KeyUsage != null ||
ValidityInMonths.HasValue)
{
var x509CertificateProperties = new X509CertificateProperties
Expand All @@ -188,7 +188,7 @@ internal CertificatePolicy ToCertificatePolicy()

if (Ekus != null)
{
x509CertificateProperties.Ekus = Ekus == null ? null : new List<string>(Ekus);
x509CertificateProperties.Ekus = new List<string>(Ekus);
}

if (DnsNames != null)
Expand Down

0 comments on commit f70d243

Please sign in to comment.