Skip to content

Commit c7a9e8d

Browse files
committed
OCM-13048 | fix: Output formatting for deleting account roles
1 parent f35799e commit c7a9e8d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/dlt/accountroles/cmd.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,8 @@ func deleteAccountRoles(r *rosa.Runtime, cmd *cobra.Command, env string, prefix
238238
r.Reporter.Warnf("There was an error deleting the account roles or policies: %s", err)
239239
continue
240240
}
241-
242-
r.Reporter.Infof(fmt.Sprintf("Successfully deleted the %s account roles", roleTypeString))
243241
}
242+
r.Reporter.Infof(fmt.Sprintf("Successfully deleted the %saccount roles", roleTypeString))
244243
case interactive.ModeManual:
245244
r.OCMClient.LogEvent("ROSADeleteAccountRoleModeManual", nil)
246245
policyMap, arbitraryPolicyMap, err := r.AWSClient.GetAccountRolePolicies(finalRoleList, prefix)

0 commit comments

Comments
 (0)