From 5b50ef724cb604c9a168b9291926f878b249d35e Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Fri, 6 Jan 2023 14:15:34 -0700 Subject: [PATCH] Fix 'nodes' alias for 'node' not 'profile' Fixes #609 Signed-off-by: Jonathon Anderson --- CHANGELOG.md | 1 + internal/app/wwctl/node/root.go | 1 + internal/app/wwctl/profile/root.go | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d967cc3..079ea4de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- The 'nodes' alias now correctly refers to 'node' rather than 'profile' - Work-around for older versions of gzip that lack a `--keep` flag during `wwctl container build`. #580 - The default ipxe template is once again specified as a built-in diff --git a/internal/app/wwctl/node/root.go b/internal/app/wwctl/node/root.go index ffc1f80b..9c3aa99c 100644 --- a/internal/app/wwctl/node/root.go +++ b/internal/app/wwctl/node/root.go @@ -22,6 +22,7 @@ var ( Long: "Management of node settings. All node ranges can use brackets to identify\n" + "node ranges. For example: n00[00-4].cluster[0-1] will identify the first 5 nodes\n" + "in cluster0 and cluster1.", + Aliases: []string{"nodes"}, } ) diff --git a/internal/app/wwctl/profile/root.go b/internal/app/wwctl/profile/root.go index 4f7b1341..fb2a805e 100644 --- a/internal/app/wwctl/profile/root.go +++ b/internal/app/wwctl/profile/root.go @@ -15,7 +15,6 @@ var ( Use: "profile COMMAND [OPTIONS]", Short: "Node configuration profile management", Long: "Management of node profile settings", - Aliases: []string{"nodes"}, } )