File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -302,8 +302,8 @@ func (sc *SetupConfig) CreateVirtualMFADevice() error {
302
302
// EnableVirtualMFADevice enables the user's MFA device
303
303
func (sc * SetupConfig ) EnableVirtualMFADevice () error {
304
304
sc .Logger .Println ("Enabling the virtual MFA device" )
305
- if sc .BaseProfile . MfaSerial == "" {
306
- return fmt . Errorf ("profile MFA serial must be set" )
305
+ if sc .MFASerial == "" {
306
+ return errors . New ("profile MFA serial must be set" )
307
307
}
308
308
309
309
mfaTokenPair := getMFATokenPair (sc .Logger )
@@ -317,7 +317,7 @@ func (sc *SetupConfig) EnableVirtualMFADevice() error {
317
317
enableMFADeviceInput := & iam.EnableMFADeviceInput {
318
318
AuthenticationCode1 : aws .String (mfaTokenPair .Token1 ),
319
319
AuthenticationCode2 : aws .String (mfaTokenPair .Token2 ),
320
- SerialNumber : aws .String (sc .BaseProfile . MfaSerial ),
320
+ SerialNumber : aws .String (sc .MFASerial ),
321
321
UserName : aws .String (sc .IAMUser ),
322
322
}
323
323
You can’t perform that action at this time.
0 commit comments