Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit e2be916

Browse files
authored
Set the root profile option's value to the name of the profile (#43)
1 parent 344d48a commit e2be916

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# awsx changelog
22

3+
## 1.4.1 (April 4, 2022)
4+
5+
- Fixing the value of the `root profile` option to correspond with the name of the profile.
6+
37
## 1.4.0 (January 4, 2022)
48

59
- Warn users when secret key X days old

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "awsx",
33
"description": "AWS CLI profile switcher with MFA support",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"author": "Neo Financial Engineering <engineering@neofinancial.com>",
66
"license": "MIT",
77
"repository": {

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const switchAssumeRoleProfile = async (
6161
console.error(chalk.red(`No profile '${assumeRoleProfileName}' found.`));
6262
}
6363
} else if (assumeRoleProfiles.length > 0) {
64-
const rootProfileOption = { title: 'root profile', value: 'root profile' };
64+
const rootProfileOption = { title: 'root profile', value: parentProfileName };
6565
const choices = [
6666
rootProfileOption,
6767
...assumeRoleProfiles.map((profile) => ({ title: profile, value: profile })),

0 commit comments

Comments
 (0)