Skip to content

Commit

Permalink
update comments to fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gcbeattyAWS committed Nov 8, 2024
1 parent ad23dcb commit 442b690
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AWS.Deploy.CLI/AWSUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AWSCredentials, string?>(profileCredentials, profile.Region?.SystemName);
}
else
Expand All @@ -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<AWSCredentials, string?>(fallbackCredentials, null);
Expand All @@ -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 <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.
chain.TryGetProfile(selectedProfileName, out var profile);
return Tuple.Create<AWSCredentials, string?>(selectedProfileCredentials, profile.Region?.SystemName);
}
Expand Down

0 comments on commit 442b690

Please sign in to comment.