summaryrefslogtreecommitdiff
path: root/lib/chef/knife/user_edit.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-02-09 11:20:56 -0800
committerThom May <thom@chef.io>2016-02-15 12:32:06 +0000
commit8eae0cc429b1ad2f569e611202051a1bddbe142a (patch)
tree9f3ec8fc4331a69825e8acb8d298a3cd74fdea65 /lib/chef/knife/user_edit.rb
parenta030711a57e126f58b2e897c915d430e67cb7d13 (diff)
downloadchef-8eae0cc429b1ad2f569e611202051a1bddbe142a.tar.gz
Be way more explicit about how we're handling datatm/missed_migration
This just codifies the behaviour we're actually using - that we're passing a json string and expecting a hash back. Also adds a deprecation warning to the use of Chef::JSONCompat.from_json
Diffstat (limited to 'lib/chef/knife/user_edit.rb')
-rw-r--r--lib/chef/knife/user_edit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/user_edit.rb b/lib/chef/knife/user_edit.rb
index 9564a31b15..bb80ede267 100644
--- a/lib/chef/knife/user_edit.rb
+++ b/lib/chef/knife/user_edit.rb
@@ -66,7 +66,7 @@ EOF
ui.warn(osc_11_warning)
run_osc_11_user_edit
else # EC / CS 12 user create
- edited_user = edit_data(original_user)
+ edited_user = edit_hash(original_user)
if original_user != edited_user
user = Chef::UserV1.from_hash(edited_user)
user.update