diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-15 08:45:08 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-07-15 08:45:08 -0700 |
commit | 221b90666356bd5c6ff40a2e46135418e1887ca8 (patch) | |
tree | f50c95aa8cb79dc26ea1205c0c3b344caf3e4907 /lib/chef/knife | |
parent | 189a3d1b364ac816b735348d338b57986ee480be (diff) | |
download | chef-221b90666356bd5c6ff40a2e46135418e1887ca8.tar.gz |
Remove require json_compat where note used
We're not directly manipulating json in these knife plugins. We're using mostly using the API class or environment/role classes directly.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/client_bulk_delete.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/client_create.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/client_delete.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/client_edit.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/client_list.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/client_reregister.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/client_show.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/data_bag_from_file.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/environment_create.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/environment_delete.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/environment_edit.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/environment_list.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/environment_show.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/role_run_list_remove.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/role_run_list_set.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/role_show.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/user_create.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/user_delete.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/user_edit.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/user_list.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/user_reregister.rb | 1 | ||||
-rw-r--r-- | lib/chef/knife/user_show.rb | 1 |
22 files changed, 0 insertions, 22 deletions
diff --git a/lib/chef/knife/client_bulk_delete.rb b/lib/chef/knife/client_bulk_delete.rb index a5fe94681d..8bb7181d65 100644 --- a/lib/chef/knife/client_bulk_delete.rb +++ b/lib/chef/knife/client_bulk_delete.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/api_client_v1" - require "chef/json_compat" end option :delete_validators, diff --git a/lib/chef/knife/client_create.rb b/lib/chef/knife/client_create.rb index b821a8a56b..62c8ff8417 100644 --- a/lib/chef/knife/client_create.rb +++ b/lib/chef/knife/client_create.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/api_client_v1" - require "chef/json_compat" end option :file, diff --git a/lib/chef/knife/client_delete.rb b/lib/chef/knife/client_delete.rb index a043b6f731..7b09a9a351 100644 --- a/lib/chef/knife/client_delete.rb +++ b/lib/chef/knife/client_delete.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/api_client_v1" - require "chef/json_compat" end option :delete_validators, diff --git a/lib/chef/knife/client_edit.rb b/lib/chef/knife/client_edit.rb index 948d43cc67..49526c72b3 100644 --- a/lib/chef/knife/client_edit.rb +++ b/lib/chef/knife/client_edit.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/api_client_v1" - require "chef/json_compat" end banner "knife client edit CLIENT (options)" diff --git a/lib/chef/knife/client_list.rb b/lib/chef/knife/client_list.rb index 794d8c9411..bf68c46990 100644 --- a/lib/chef/knife/client_list.rb +++ b/lib/chef/knife/client_list.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/api_client_v1" - require "chef/json_compat" end banner "knife client list (options)" diff --git a/lib/chef/knife/client_reregister.rb b/lib/chef/knife/client_reregister.rb index ce34884803..28660f60c0 100644 --- a/lib/chef/knife/client_reregister.rb +++ b/lib/chef/knife/client_reregister.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/api_client_v1" - require "chef/json_compat" end banner "knife client reregister CLIENT (options)" diff --git a/lib/chef/knife/client_show.rb b/lib/chef/knife/client_show.rb index ce3bf458b2..5a07ff7af1 100644 --- a/lib/chef/knife/client_show.rb +++ b/lib/chef/knife/client_show.rb @@ -26,7 +26,6 @@ class Chef deps do require "chef/api_client_v1" - require "chef/json_compat" end banner "knife client show CLIENT (options)" diff --git a/lib/chef/knife/data_bag_from_file.rb b/lib/chef/knife/data_bag_from_file.rb index 91adcb3129..3579631e41 100644 --- a/lib/chef/knife/data_bag_from_file.rb +++ b/lib/chef/knife/data_bag_from_file.rb @@ -30,7 +30,6 @@ class Chef require "chef/data_bag" require "chef/data_bag_item" require "chef/knife/core/object_loader" - require "chef/json_compat" require "chef/encrypted_data_bag_item" end diff --git a/lib/chef/knife/environment_create.rb b/lib/chef/knife/environment_create.rb index e533a70172..ca51d2cf1a 100644 --- a/lib/chef/knife/environment_create.rb +++ b/lib/chef/knife/environment_create.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/environment" - require "chef/json_compat" end banner "knife environment create ENVIRONMENT (options)" diff --git a/lib/chef/knife/environment_delete.rb b/lib/chef/knife/environment_delete.rb index 869d1c74fe..8368ce9dcd 100644 --- a/lib/chef/knife/environment_delete.rb +++ b/lib/chef/knife/environment_delete.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/environment" - require "chef/json_compat" end banner "knife environment delete ENVIRONMENT (options)" diff --git a/lib/chef/knife/environment_edit.rb b/lib/chef/knife/environment_edit.rb index 43f0b067ae..29f1467626 100644 --- a/lib/chef/knife/environment_edit.rb +++ b/lib/chef/knife/environment_edit.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/environment" - require "chef/json_compat" end banner "knife environment edit ENVIRONMENT (options)" diff --git a/lib/chef/knife/environment_list.rb b/lib/chef/knife/environment_list.rb index c3f2ef2e39..71e4fffe80 100644 --- a/lib/chef/knife/environment_list.rb +++ b/lib/chef/knife/environment_list.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/environment" - require "chef/json_compat" end banner "knife environment list (options)" diff --git a/lib/chef/knife/environment_show.rb b/lib/chef/knife/environment_show.rb index 6d260adbd6..04d17ed1f4 100644 --- a/lib/chef/knife/environment_show.rb +++ b/lib/chef/knife/environment_show.rb @@ -26,7 +26,6 @@ class Chef deps do require "chef/environment" - require "chef/json_compat" end banner "knife environment show ENVIRONMENT (options)" diff --git a/lib/chef/knife/role_run_list_remove.rb b/lib/chef/knife/role_run_list_remove.rb index 6fd35c6aaa..8aaf408a61 100644 --- a/lib/chef/knife/role_run_list_remove.rb +++ b/lib/chef/knife/role_run_list_remove.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/role" - require "chef/json_compat" end banner "knife role run_list remove [ROLE] [ENTRY]" diff --git a/lib/chef/knife/role_run_list_set.rb b/lib/chef/knife/role_run_list_set.rb index 644af1c381..87ba3efb1f 100644 --- a/lib/chef/knife/role_run_list_set.rb +++ b/lib/chef/knife/role_run_list_set.rb @@ -25,7 +25,6 @@ class Chef deps do require "chef/role" - require "chef/json_compat" end banner "knife role run_list set [ROLE] [ENTRIES]" diff --git a/lib/chef/knife/role_show.rb b/lib/chef/knife/role_show.rb index 99684768bb..14443fa9be 100644 --- a/lib/chef/knife/role_show.rb +++ b/lib/chef/knife/role_show.rb @@ -26,7 +26,6 @@ class Chef deps do require "chef/node" - require "chef/json_compat" end banner "knife role show ROLE (options)" diff --git a/lib/chef/knife/user_create.rb b/lib/chef/knife/user_create.rb index a1761de979..3553e4db44 100644 --- a/lib/chef/knife/user_create.rb +++ b/lib/chef/knife/user_create.rb @@ -28,7 +28,6 @@ class Chef deps do require "chef/user_v1" - require "chef/json_compat" end option :file, diff --git a/lib/chef/knife/user_delete.rb b/lib/chef/knife/user_delete.rb index b0a2ece065..38122975c7 100644 --- a/lib/chef/knife/user_delete.rb +++ b/lib/chef/knife/user_delete.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/user_v1" - require "chef/json_compat" end banner "knife user delete USER (options)" diff --git a/lib/chef/knife/user_edit.rb b/lib/chef/knife/user_edit.rb index 8b89b847a9..e445a31677 100644 --- a/lib/chef/knife/user_edit.rb +++ b/lib/chef/knife/user_edit.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/user_v1" - require "chef/json_compat" end banner "knife user edit USER (options)" diff --git a/lib/chef/knife/user_list.rb b/lib/chef/knife/user_list.rb index eccb8d15a4..4e24a4c7d7 100644 --- a/lib/chef/knife/user_list.rb +++ b/lib/chef/knife/user_list.rb @@ -26,7 +26,6 @@ class Chef deps do require "chef/user_v1" - require "chef/json_compat" end banner "knife user list (options)" diff --git a/lib/chef/knife/user_reregister.rb b/lib/chef/knife/user_reregister.rb index c79deb09a7..97840cadf3 100644 --- a/lib/chef/knife/user_reregister.rb +++ b/lib/chef/knife/user_reregister.rb @@ -24,7 +24,6 @@ class Chef deps do require "chef/user_v1" - require "chef/json_compat" end banner "knife user reregister USER (options)" diff --git a/lib/chef/knife/user_show.rb b/lib/chef/knife/user_show.rb index c2842aa576..544d420346 100644 --- a/lib/chef/knife/user_show.rb +++ b/lib/chef/knife/user_show.rb @@ -26,7 +26,6 @@ class Chef deps do require "chef/user_v1" - require "chef/json_compat" end banner "knife user show USER (options)" |