Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
royroyee committed Apr 5, 2024
1 parent b34e9a5 commit fbe03e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/iam/group_detail.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ var groupDetailCmd = &cobra.Command{
utils.CliError("Connection to Alpacon API failed: %s. Consider re-logging.", err)
}

groupDetail, err := iam.GetGroupDetail(alpaconClient, groupName)
groupId, err := iam.GetGroupIDByName(alpaconClient, groupName)
if err != nil {
utils.CliError("Failed to retrieve the group details: %s. Please check if the groupname is correct and try again.", err)
}
groupDetail, err := iam.GetGroupDetail(alpaconClient, groupId)
if err != nil {
utils.CliError("Failed to retrieve the group details: %s.", err)
}
Expand Down

0 comments on commit fbe03e9

Please sign in to comment.