Fix wwctl upgrade config description
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -15,8 +15,8 @@ var (
|
||||
Command = &cobra.Command{
|
||||
DisableFlagsInUseLine: true,
|
||||
Use: "config [OPTIONS]",
|
||||
Short: "Upgrade an existing nodes.conf",
|
||||
Long: `Upgrades nodes.conf from a previous version of Warewulf 4 to a format
|
||||
Short: "Upgrade an existing warewulf.conf",
|
||||
Long: `Upgrades warewulf.conf from a previous version of Warewulf 4 to a format
|
||||
supported by the current version.`,
|
||||
RunE: UpgradeNodesConf,
|
||||
}
|
||||
@@ -26,8 +26,8 @@ supported by the current version.`,
|
||||
)
|
||||
|
||||
func init() {
|
||||
Command.Flags().StringVarP(&inputPath, "input-path", "i", config.ConfigFile, "Path to a legacy nodes.conf")
|
||||
Command.Flags().StringVarP(&outputPath, "output-path", "o", config.ConfigFile, "Path to write the upgraded nodes.conf to")
|
||||
Command.Flags().StringVarP(&inputPath, "input-path", "i", config.ConfigFile, "Path to a legacy warewulf.conf")
|
||||
Command.Flags().StringVarP(&outputPath, "output-path", "o", config.ConfigFile, "Path to write the upgraded warewulf.conf to")
|
||||
}
|
||||
|
||||
func UpgradeNodesConf(cmd *cobra.Command, args []string) error {
|
||||
|
||||
Reference in New Issue
Block a user