From 0020d529b9a31bc249f3c934d3aa97dc646b6356 Mon Sep 17 00:00:00 2001 From: "Michael L. Young" Date: Mon, 20 Sep 2021 16:57:01 -0400 Subject: [PATCH] Fix panic when failing to include the command to be run by the 'container exec' command. Update documentation for the 'container exec' command. --- internal/app/wwctl/container/exec/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/wwctl/container/exec/root.go b/internal/app/wwctl/container/exec/root.go index 8384ae57..561f8750 100644 --- a/internal/app/wwctl/container/exec/root.go +++ b/internal/app/wwctl/container/exec/root.go @@ -7,13 +7,13 @@ import ( var ( baseCmd = &cobra.Command{ - Use: "exec [flags] [container name]", + Use: "exec [flags] [container name] [command]", Short: "Run a command inside of a Warewulf container", Long: "This command will allow you to run any command inside of a given\n" + "warewulf container. This is commonly used with an interactive shell such as /bin/bash\n" + "to run a virtual environment within the container.", RunE: CobraRunE, - Args: cobra.MinimumNArgs(1), + Args: cobra.MinimumNArgs(2), FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true}, } binds []string