Skip to content

Commit e097d2f

Browse files
Fix code review inconsistencies
Signed-off-by: katara-Jayprakash <katarajayprakash@icloud.com>
1 parent 991ea52 commit e097d2f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

mgrctl/cmd/get/get.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ func runGet(_ *types.GlobalFlags, flags *getFlags, _ *cobra.Command, args []stri
7575
if err != nil {
7676
return err
7777
}
78-
// Initializing the Connection with uyuni server
7978
client, err := api.Init(&flags.ConnectionDetails)
8079
if err == nil && (client.Details.User != "" || client.Details.InSession) {
8180
err = client.Login()

mgrctl/cmd/get/systemgroup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func init() {
1616
type systemGroupFetcher struct{}
1717

1818
func (systemGroupFetcher) List(client *api.APIClient, _ string, _, _ int) ([]map[string]any, int, error) {
19-
res, err := api.Get[[]map[string]any](client, "systemgroup/listAllGroups")
19+
res, err := api.GetChecked[[]map[string]any](client, "systemgroup/listAllGroups", "api.systemgroup.list_all_groups")
2020
if err != nil {
2121
return nil, 0, err
2222
}

0 commit comments

Comments
 (0)