Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Oct 11, 2023
1 parent 77badcb commit 5cc13f1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cmd/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func newFirewallCmd(c *config) *cobra.Command {
cmd.Flags().String("project", "", "allocation project to filter [optional]")
cmd.Flags().String("image", "", "allocation image to filter [optional]")
cmd.Flags().String("hostname", "", "allocation hostname to filter [optional]")
cmd.Flags().StringSlice("mac", []string{}, "mac to filter [optional]")
cmd.Flags().StringSlice("macs", []string{}, "mac to filter [optional]")
cmd.Flags().StringSlice("tags", []string{}, "tags to filter, use it like: --tags \"tag1,tag2\" or --tags \"tag3\".")
must(cmd.RegisterFlagCompletionFunc("partition", c.comp.PartitionListCompletion))
must(cmd.RegisterFlagCompletionFunc("size", c.comp.SizeListCompletion))
Expand Down Expand Up @@ -94,7 +94,7 @@ func (c firewallCmd) List() ([]*models.V1FirewallResponse, error) {
AllocationProject: viper.GetString("project"),
AllocationImageID: viper.GetString("image"),
AllocationHostname: viper.GetString("hostname"),
NicsMacAddresses: viper.GetStringSlice("mac"),
NicsMacAddresses: viper.GetStringSlice("macs"),
Tags: viper.GetStringSlice("tags"),
}), nil)
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions cmd/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func (c *machineCmd) listCmdFlags(cmd *cobra.Command, lastEventErrorThresholdDef
cmd.Flags().String("project", "", "allocation project to filter [optional]")
cmd.Flags().String("image", "", "allocation image to filter [optional]")
cmd.Flags().String("hostname", "", "allocation hostname to filter [optional]")
cmd.Flags().StringSlice("mac", nil, "mac to filter [optional]")
cmd.Flags().StringSlice("tags", nil, "tags to filter, use it like: --tags \"tag1,tag2\" or --tags \"tag3\".")
cmd.Flags().StringSlice("macs", []string{}, "macs to filter [optional]")
cmd.Flags().StringSlice("tags", []string{}, "tags to filter, use it like: --tags \"tag1,tag2\" or --tags \"tag3\".")
cmd.Flags().Duration("last-event-error-threshold", lastEventErrorThresholdDefault, "the duration up to how long in the past a machine last event error will be counted as an issue [optional]")

for _, c := range listFlagCompletions {
Expand Down Expand Up @@ -542,7 +542,7 @@ func machineFindRequestFromCLI() *models.V1MachineFindRequest {
AllocationProject: viper.GetString("project"),
AllocationImageID: viper.GetString("image"),
AllocationHostname: viper.GetString("hostname"),
NicsMacAddresses: viper.GetStringSlice("mac"),
NicsMacAddresses: viper.GetStringSlice("macs"),
StateValue: viper.GetString("state"),
Tags: viper.GetStringSlice("tags"),
}
Expand Down Expand Up @@ -1308,7 +1308,7 @@ func (c *machineCmd) machineIssuesEvaluate(args []string) error {
AllocationProject: viper.GetString("project"),
AllocationImageID: viper.GetString("image"),
AllocationHostname: viper.GetString("hostname"),
NicsMacAddresses: viper.GetStringSlice("mac"),
NicsMacAddresses: viper.GetStringSlice("macs"),
StateValue: viper.GetString("state"),
Tags: viper.GetStringSlice("tags"),
LastErrorThreshold: pointer.PointerOrNil(int64(viper.GetDuration("last-event-error-threshold"))),
Expand Down
2 changes: 1 addition & 1 deletion docs/metalctl_firewall_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metalctl firewall list [flags]
--hostname string allocation hostname to filter [optional]
--id string ID to filter [optional]
--image string allocation image to filter [optional]
--mac strings mac to filter [optional]
--macs strings mac to filter [optional]
--name string allocation name to filter [optional]
--partition string partition to filter [optional]
--project string allocation project to filter [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/metalctl_machine_ipmi.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metalctl machine ipmi [<machine ID>] [flags]
--id string ID to filter [optional]
--image string allocation image to filter [optional]
--last-event-error-threshold duration the duration up to how long in the past a machine last event error will be counted as an issue [optional] (default 1h0m0s)
--mac strings mac to filter [optional]
--macs strings macs to filter [optional]
--name string allocation name to filter [optional]
--partition string partition to filter [optional]
--project string allocation project to filter [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/metalctl_machine_issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metalctl machine issues [<machine ID>] [flags]
--id string ID to filter [optional]
--image string allocation image to filter [optional]
--last-event-error-threshold duration the duration up to how long in the past a machine last event error will be counted as an issue [optional]
--mac strings mac to filter [optional]
--macs strings macs to filter [optional]
--name string allocation name to filter [optional]
--omit strings issue types to omit [optional]
--only strings issue types to include [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/metalctl_machine_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metalctl machine list [flags]
--id string ID to filter [optional]
--image string allocation image to filter [optional]
--last-event-error-threshold duration the duration up to how long in the past a machine last event error will be counted as an issue [optional] (default 1h0m0s)
--mac strings mac to filter [optional]
--macs strings macs to filter [optional]
--name string allocation name to filter [optional]
--partition string partition to filter [optional]
--project string allocation project to filter [optional]
Expand Down

0 comments on commit 5cc13f1

Please sign in to comment.