Merge pull request #1545 from anderbubble/typo-upgrade-description

Fix `wwctl upgrade config` description
This commit is contained in:
Christian Goll
2024-11-12 14:43:29 +01:00
committed by GitHub

View File

@@ -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 {