From 1d34477425db7d738c66954bc940550626de73c5 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Fri, 7 Feb 2025 22:38:32 -0700 Subject: [PATCH] wwctl configure subcommands accept no positional arguments Signed-off-by: Jonathon Anderson --- internal/app/wwctl/configure/dhcp/root.go | 1 + internal/app/wwctl/configure/hostfile/root.go | 1 + internal/app/wwctl/configure/nfs/root.go | 1 + internal/app/wwctl/configure/ssh/root.go | 1 + internal/app/wwctl/configure/tftp/root.go | 1 + 5 files changed, 5 insertions(+) diff --git a/internal/app/wwctl/configure/dhcp/root.go b/internal/app/wwctl/configure/dhcp/root.go index 231dcbf1..86f9e1b9 100644 --- a/internal/app/wwctl/configure/dhcp/root.go +++ b/internal/app/wwctl/configure/dhcp/root.go @@ -12,6 +12,7 @@ var ( Long: "DHCP is a dependent service to Warewulf. This command will configure DHCP as defined\n" + "in the warewulf.conf file.", RunE: CobraRunE, + Args: cobra.ExactArgs(0), } ) diff --git a/internal/app/wwctl/configure/hostfile/root.go b/internal/app/wwctl/configure/hostfile/root.go index 2942f46f..853930b2 100644 --- a/internal/app/wwctl/configure/hostfile/root.go +++ b/internal/app/wwctl/configure/hostfile/root.go @@ -9,6 +9,7 @@ var ( Short: "update hostfile on master", Long: "Manage the hostfile on the master node\n", RunE: CobraRunE, + Args: cobra.ExactArgs(0), } ) diff --git a/internal/app/wwctl/configure/nfs/root.go b/internal/app/wwctl/configure/nfs/root.go index c331aa2c..5714dec0 100644 --- a/internal/app/wwctl/configure/nfs/root.go +++ b/internal/app/wwctl/configure/nfs/root.go @@ -10,6 +10,7 @@ var ( Long: "NFS is an optional dependent service of Warewulf, this tool will automatically\n" + "configure NFS as per the configuration in the warewulf.conf file.", RunE: CobraRunE, + Args: cobra.ExactArgs(0), } ) diff --git a/internal/app/wwctl/configure/ssh/root.go b/internal/app/wwctl/configure/ssh/root.go index b14d0cca..0ed34ef1 100644 --- a/internal/app/wwctl/configure/ssh/root.go +++ b/internal/app/wwctl/configure/ssh/root.go @@ -13,6 +13,7 @@ var ( "setup the ssh keys nodes using the 'default' system overlay as well as user owned\n" + "keys.", RunE: CobraRunE, + Args: cobra.ExactArgs(0), } keyTypes []string ) diff --git a/internal/app/wwctl/configure/tftp/root.go b/internal/app/wwctl/configure/tftp/root.go index 36198f10..9e426924 100644 --- a/internal/app/wwctl/configure/tftp/root.go +++ b/internal/app/wwctl/configure/tftp/root.go @@ -10,6 +10,7 @@ var ( Long: "TFTP is a dependent service of Warewulf, this tool will enable the tftp services\n" + "on your Warewulf master.", RunE: CobraRunE, + Args: cobra.ExactArgs(0), } setShow bool )