diff --git a/plugins/resource/src/subcommands/limit/limit.go b/plugins/resource/src/subcommands/limit/limit.go index 7046b637a..d45438e3a 100644 --- a/plugins/resource/src/subcommands/limit/limit.go +++ b/plugins/resource/src/subcommands/limit/limit.go @@ -10,7 +10,7 @@ import ( func main() { args := flag.NewFlagSet("resource:limit", flag.ExitOnError) - processeType := args.String("process-type", "", "process-type: A process type to manage") + processType := args.String("process-type", "", "process-type: A process type to manage") cpu := args.String("cpu", "", "cpu: The amount of cpu to limit processes by") memory := args.String("memory", "", "memory: The amount of memory to limit processes by") memorySwap := args.String("memory-swap", "", "memory-swap: The amount of swap memory to limit processes by") @@ -28,7 +28,7 @@ func main() { NetworkEgress: *networkEgress, } - err := resource.CommandLimit(args.Args(), *processeType, resources) + err := resource.CommandLimit(args.Args(), *processType, resources) if err != nil { common.LogFail(err.Error()) } diff --git a/plugins/resource/src/subcommands/reserve/reserve.go b/plugins/resource/src/subcommands/reserve/reserve.go index 579abd5ca..afeccb551 100644 --- a/plugins/resource/src/subcommands/reserve/reserve.go +++ b/plugins/resource/src/subcommands/reserve/reserve.go @@ -10,7 +10,7 @@ import ( func main() { args := flag.NewFlagSet("resource:reserve", flag.ExitOnError) - processeType := args.String("process-type", "", "process-type: A process type to manage") + processType := args.String("process-type", "", "process-type: A process type to manage") cpu := args.String("cpu", "", "cpu: The amount of cpu to reserve for processes") memory := args.String("memory", "", "memory: The amount of memory to reserve for processes") memorySwap := args.String("memory-swap", "", "memory-swap: The amount of swap memory to reserve for processes") @@ -28,7 +28,7 @@ func main() { NetworkEgress: *networkEgress, } - err := resource.CommandReserve(args.Args(), *processeType, resources) + err := resource.CommandReserve(args.Args(), *processType, resources) if err != nil { common.LogFail(err.Error()) }