diff options
Diffstat (limited to 'lib/chef/knife/client_edit.rb')
-rw-r--r-- | lib/chef/knife/client_edit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/client_edit.rb b/lib/chef/knife/client_edit.rb index 49526c72b3..21fd3f457d 100644 --- a/lib/chef/knife/client_edit.rb +++ b/lib/chef/knife/client_edit.rb @@ -1,6 +1,6 @@ # # Author:: Adam Jacob (<adam@chef.io>) -# Copyright:: Copyright 2009-2016, Chef Software Inc. +# Copyright:: Copyright 2009-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -37,7 +37,7 @@ class Chef exit 1 end - original_data = Chef::ApiClientV1.load(@client_name).to_hash + original_data = Chef::ApiClientV1.load(@client_name).to_h edited_client = edit_hash(original_data) if original_data != edited_client client = Chef::ApiClientV1.from_hash(edited_client) |