Skip to content

Commit

Permalink
Merge pull request #141 from katherinelc321/refactorUnassign
Browse files Browse the repository at this point in the history
Refactor func to print out err and continue
  • Loading branch information
katherinelc321 authored Sep 7, 2021
2 parents ecc030d + 70e07a9 commit 40c8805
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/account/mgmt/account-unassign.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40c8805

Please sign in to comment.