summaryrefslogtreecommitdiff
path: root/lib/chef/knife/user_create.rb
diff options
context:
space:
mode:
authortylercloke <tylercloke@gmail.com>2015-05-29 13:06:49 -0700
committertylercloke <tylercloke@gmail.com>2015-06-05 10:38:48 -0700
commit9cc6f7645204f7fe8c2faabfca07264669a667f9 (patch)
treed0f43d3539e876b09088bd8ba28a0984565fbeb2 /lib/chef/knife/user_create.rb
parent9b9d376f2e86cd2738c2c2928f77bf48f1dd20ee (diff)
downloadchef-9cc6f7645204f7fe8c2faabfca07264669a667f9.tar.gz
Added V1 support to Chef::User.update and removed admin field.
Diffstat (limited to 'lib/chef/knife/user_create.rb')
-rw-r--r--lib/chef/knife/user_create.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/chef/knife/user_create.rb b/lib/chef/knife/user_create.rb
index 992bbbe3c9..6b06153bf8 100644
--- a/lib/chef/knife/user_create.rb
+++ b/lib/chef/knife/user_create.rb
@@ -35,12 +35,6 @@ class Chef
:long => "--file FILE",
:description => "Write the private key to a file, if returned by the server. A private key will be returned when both --user-key and --no-key are NOT passed. In that case, the server will generate a default key for you and return the private key it creates."
- option :admin,
- :short => "-a",
- :long => "--admin",
- :description => "Create the user as an admin (only relevant for Open Source Chef Server 11).",
- :boolean => true
-
option :user_key,
:long => "--user-key FILENAME",
:description => "Public key for newly created user. Path to a public key you provide instead of having the server generate one. If --user-key is not passed, the server will create a 'default' key for you, unless you passed --no-key. Note that --user-key cannot be passed with --no-key."
@@ -84,8 +78,6 @@ class Chef
exit 1
end
- user.admin(config[:admin])
-
unless config[:no_key]
user.create_key(true)
end