Skip to content

Commit

Permalink
Set the root profile option's value to the name of the profile (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricZaporzan committed Apr 4, 2022
1 parent 344d48a commit e2be916
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# awsx changelog

## 1.4.1 (April 4, 2022)

- Fixing the value of the `root profile` option to correspond with the name of the profile.

## 1.4.0 (January 4, 2022)

- Warn users when secret key X days old
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "awsx",
"description": "AWS CLI profile switcher with MFA support",
"version": "1.4.0",
"version": "1.4.1",
"author": "Neo Financial Engineering <engineering@neofinancial.com>",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const switchAssumeRoleProfile = async (
console.error(chalk.red(`No profile '${assumeRoleProfileName}' found.`));
}
} else if (assumeRoleProfiles.length > 0) {
const rootProfileOption = { title: 'root profile', value: 'root profile' };
const rootProfileOption = { title: 'root profile', value: parentProfileName };
const choices = [
rootProfileOption,
...assumeRoleProfiles.map((profile) => ({ title: profile, value: profile })),
Expand Down

0 comments on commit e2be916

Please sign in to comment.