Skip to content

Commit 5ff17a7

Browse files
fix: govulncheck -tags ptf and golangci-lint
Signed-off-by: katara-Jayprakash <katarajayprakash@icloud.com>
1 parent 990bc46 commit 5ff17a7

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

mgrctl/cmd/get/get.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ func NewCommand(globalFlags *types.GlobalFlags) *cobra.Command {
2626
Long: L("Prints tables, JSON, or YAML of Uyuni API resources. Modeled after kubectl get."),
2727
}
2828

29-
getCmd.PersistentFlags().StringVarP(&flags.OutputFormat, "output", "o", "table", L("Output format. One of: table|json|yaml"))
29+
getCmd.PersistentFlags().StringVarP(
30+
&flags.OutputFormat,
31+
"output",
32+
"o",
33+
"table",
34+
L("Output format. One of: table|json|yaml"),
35+
)
3036

3137
getCmd.AddCommand(newSystemCommand(globalFlags, &flags))
3238

mgrctl/cmd/get/system.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ import (
1616
. "github.com/uyuni-project/uyuni-tools/shared/l10n"
1717
"github.com/uyuni-project/uyuni-tools/shared/types"
1818
"github.com/uyuni-project/uyuni-tools/shared/utils"
19-
"gopkg.in/yaml.v3"
19+
"gopkg.in/yaml.v2"
2020
)
2121

2222
func newSystemCommand(globalFlags *types.GlobalFlags, parentFlags *getFlags) *cobra.Command {
2323
return &cobra.Command{
2424
Use: "system [name/id]",
2525
Aliases: []string{"systems"},
2626
Short: L("List or get details for registered systems"),
27-
RunE: func(cmd *cobra.Command, args []string) error {
27+
RunE: func(_ *cobra.Command, args []string) error {
2828
return runGetSystem(globalFlags, parentFlags, args)
2929
},
3030
}

0 commit comments

Comments
 (0)