From e914d191b7c979149fd3aa59fe621e79db435da3 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 2 May 2019 22:43:14 -0700 Subject: More periods and product constants A few formatting fixes as well Signed-off-by: Tim Smith --- lib/chef/knife/user_create.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/chef/knife/user_create.rb') diff --git a/lib/chef/knife/user_create.rb b/lib/chef/knife/user_create.rb index 6a4a123ad8..2381ffbdbd 100644 --- a/lib/chef/knife/user_create.rb +++ b/lib/chef/knife/user_create.rb @@ -18,6 +18,7 @@ # require "chef/knife" +require "chef/dist" class Chef class Knife @@ -41,7 +42,7 @@ class Chef option :prevent_keygen, short: "-k", long: "--prevent-keygen", - description: "API V1 (Chef Server 12.1+) only. Prevent server from generating a default key pair for you. Cannot be passed with --user-key.", + description: "API V1 (#{Chef::Dist::SERVER_PRODUCT} 12.1+) only. Prevent server from generating a default key pair for you. Cannot be passed with --user-key.", boolean: true banner "knife user create USERNAME DISPLAY_NAME FIRST_NAME LAST_NAME EMAIL PASSWORD (options)" -- cgit v1.2.1