From 442b6905dd8d698dd5050770b38299c5b7c77991 Mon Sep 17 00:00:00 2001 From: Garrett Beatty Date: Fri, 8 Nov 2024 13:25:47 -0500 Subject: [PATCH] update comments to fix typo --- src/AWS.Deploy.CLI/AWSUtilities.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AWS.Deploy.CLI/AWSUtilities.cs b/src/AWS.Deploy.CLI/AWSUtilities.cs index e5fe0028..9451cb65 100644 --- a/src/AWS.Deploy.CLI/AWSUtilities.cs +++ b/src/AWS.Deploy.CLI/AWSUtilities.cs @@ -72,8 +72,8 @@ public AWSUtilities( { _toolInteractiveService.WriteLine($"Configuring AWS Credentials from Profile {profileName}."); chain.TryGetProfile(profileName, out var profile); - // Return the credential since they must be found at this point. - // For region, we try and reaqd it the profile. If its not defined in the profile, return null and region selection will be handled later on by ResolveAWSRegion + // Return the credentials since it must be found at this point. + // For region, we try to read it from the profile. If it's not found in the profile, then return null and region selection will be handled later on by ResolveAWSRegion. return Tuple.Create(profileCredentials, profile.Region?.SystemName); } else @@ -90,7 +90,7 @@ public AWSUtilities( if (await CanLoadCredentials(fallbackCredentials)) { - // Always return the credential since they must be found at this point. + // Always return the credentials since they must be found at this point. // For region, we return null here, since it will read from default region in ResolveAWSRegion _toolInteractiveService.WriteLine("Configuring AWS Credentials using AWS SDK credential search."); return Tuple.Create(fallbackCredentials, null); @@ -115,8 +115,8 @@ public AWSUtilities( if (chain.TryGetAWSCredentials(selectedProfileName, out var selectedProfileCredentials) && (await CanLoadCredentials(selectedProfileCredentials))) { - // Always return the credential since they must be found at this point - // For region, we try and reaqd it the profile. If its not defined in the profile, return null and region selection will be handled later on by + // Return the credentials since it must be found at this point. + // For region, we try to read it from the profile. If it's not found in the profile, then return null and region selection will be handled later on by ResolveAWSRegion. chain.TryGetProfile(selectedProfileName, out var profile); return Tuple.Create(selectedProfileCredentials, profile.Region?.SystemName); }