From 70e07a915a3c214d263cf945a2f01439c3dec5f0 Mon Sep 17 00:00:00 2001 From: Katherine Lin Date: Tue, 24 Aug 2021 14:38:42 -0400 Subject: [PATCH] Refactor func --- cmd/account/mgmt/account-unassign.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/account/mgmt/account-unassign.go b/cmd/account/mgmt/account-unassign.go index c3036744..330cb59c 100644 --- a/cmd/account/mgmt/account-unassign.go +++ b/cmd/account/mgmt/account-unassign.go @@ -145,32 +145,32 @@ func (o *accountUnassignOptions) run() error { // Delete login profile err = o.deleteLoginProfile(accountUsername) if err != nil { - return err + fmt.Println(err) } // Delete access keys err = o.deleteAccessKeys(accountUsername) if err != nil { - return err + fmt.Println(err) } // Delete signing certificates err = o.deleteSigningCert(accountUsername) if err != nil { - return err + fmt.Println(err) } // Delete policies err = o.deletePolicies(accountUsername) if err != nil { - return err + fmt.Println(err) } // Delete attached policies err = o.deleteAttachedPolicies(accountUsername) if err != nil { - return err + fmt.Println(err) } // Delete groups err = o.deleteGroups(accountUsername) if err != nil { - return err + fmt.Println(err) } // Delete user err = o.deleteUser(accountUsername)