Skip to content

Commit

Permalink
Merge pull request #82 from trussworks/cg_base_profile_mfa
Browse files Browse the repository at this point in the history
Re-add the mfa device to the base profile.
  • Loading branch information
Chris Gilmer committed Jul 21, 2020
2 parents 67a0f96 + 8d68ae1 commit 80b656a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,9 @@ func (sc *SetupConfig) UpdateAWSConfigFile() error {
}

sc.BaseProfile = &vault.ProfileSection{
Name: sc.BaseProfileName,
Region: sc.Region,
Name: sc.BaseProfileName,
Region: sc.Region,
MfaSerial: sc.MFASerial,
}

// Add the base profile
Expand Down
2 changes: 1 addition & 1 deletion cmd/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ output=json

testBaseSection, ok := config.ProfileSection("test-id-base")
suite.True(ok)
suite.Equal(len(testBaseSection.MfaSerial), 0)
suite.Equal(testBaseSection.MfaSerial, mfaSerial)
suite.Equal(testBaseSection.Region, "us-west-2")
// suite.Equal(testBaseSection.Output, "json")

Expand Down

0 comments on commit 80b656a

Please sign in to comment.