summaryrefslogtreecommitdiff
path: root/lib/chef/api_client_v1.rb
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-03-22 10:29:47 -0700
committerJohn McCrae <john.mccrae@progress.com>2022-03-22 10:29:47 -0700
commit7621812b7e829fd53ad65430c61cb01a572d623b (patch)
treee4ae420c593650c34adebb3d7b06667e2cd10a5f /lib/chef/api_client_v1.rb
parente475b0735ba88f3d376b184aaf912896e3246fd1 (diff)
downloadchef-7621812b7e829fd53ad65430c61cb01a572d623b.tar.gz
updating gemlock files
Signed-off-by: John McCrae <john.mccrae@progress.com>
Diffstat (limited to 'lib/chef/api_client_v1.rb')
-rw-r--r--lib/chef/api_client_v1.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/api_client_v1.rb b/lib/chef/api_client_v1.rb
index f7a41cdb5b..b61efa9857 100644
--- a/lib/chef/api_client_v1.rb
+++ b/lib/chef/api_client_v1.rb
@@ -299,10 +299,10 @@ class Chef
# the new method only gets called when migrating keys to the certificate store.
new_client = if Chef::Config[:migrate_key_to_keystore] == true
- chef_rest_v1_with_validator.post("clients", payload)
- else
- chef_rest_v1.post("clients", payload)
- end
+ chef_rest_v1_with_validator.post("clients", payload)
+ else
+ chef_rest_v1.post("clients", payload)
+ end
# get the private_key out of the chef_key hash if it exists
if new_client["chef_key"]