From ad4531a2b94b51577388bbf10ab99748363eeab0 Mon Sep 17 00:00:00 2001 From: Beisi Zhou Date: Tue, 28 Jun 2022 14:42:06 +0800 Subject: [PATCH] fix typo (#18770) --- .../Commands/Certificate/ImportAzureKeyVaultCertificate.cs | 2 +- .../KeyVault/Track2Models/Track2KeyVaultDataServiceClient.cs | 2 +- src/KeyVault/KeyVault/Track2Models/Track2VaultClient.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/KeyVault/KeyVault/Commands/Certificate/ImportAzureKeyVaultCertificate.cs b/src/KeyVault/KeyVault/Commands/Certificate/ImportAzureKeyVaultCertificate.cs index 22ebd2f5b4e3..57b0d446465e 100644 --- a/src/KeyVault/KeyVault/Commands/Certificate/ImportAzureKeyVaultCertificate.cs +++ b/src/KeyVault/KeyVault/Commands/Certificate/ImportAzureKeyVaultCertificate.cs @@ -201,7 +201,7 @@ public override void ExecuteCmdlet() private bool IsPemFile(string filePath) { - return ".pem".Equals(Path.GetExtension(FilePath), StringComparison.OrdinalIgnoreCase); + return ".pem".Equals(Path.GetExtension(filePath), StringComparison.OrdinalIgnoreCase); } internal X509Certificate2Collection InitializeCertificateCollection() diff --git a/src/KeyVault/KeyVault/Track2Models/Track2KeyVaultDataServiceClient.cs b/src/KeyVault/KeyVault/Track2Models/Track2KeyVaultDataServiceClient.cs index 68ba1bbce626..c378ab65e345 100644 --- a/src/KeyVault/KeyVault/Track2Models/Track2KeyVaultDataServiceClient.cs +++ b/src/KeyVault/KeyVault/Track2Models/Track2KeyVaultDataServiceClient.cs @@ -259,7 +259,7 @@ public PSKeyVaultCertificate MergeCertificate(string vaultName, string certName, public PSKeyVaultCertificate MergeCertificate(string vaultName, string name, byte[] certBytes, Dictionary tags) { - return VaultClient.MergeCertifcate(vaultName, name, certBytes, tags); + return VaultClient.MergeCertificate(vaultName, name, certBytes, tags); } public void PurgeCertificate(string vaultName, string certName) diff --git a/src/KeyVault/KeyVault/Track2Models/Track2VaultClient.cs b/src/KeyVault/KeyVault/Track2Models/Track2VaultClient.cs index b86b4b876db4..92f206f5f2fe 100644 --- a/src/KeyVault/KeyVault/Track2Models/Track2VaultClient.cs +++ b/src/KeyVault/KeyVault/Track2Models/Track2VaultClient.cs @@ -241,7 +241,7 @@ private PSKeyVaultCertificate ImportCertificate(CertificateClient certClient, st return new PSKeyVaultCertificate(certClient.ImportCertificate(options)); } - public PSKeyVaultCertificate MergeCertifcate(string vaultName, string certName, byte[] certificate, IDictionary tags) + public PSKeyVaultCertificate MergeCertificate(string vaultName, string certName, byte[] certificate, IDictionary tags) { var certClient = CreateCertificateClient(vaultName); var options = new MergeCertificateOptions(certName, new List { certificate });