From 3c9f0d52fa2358f6897162dec34972b1113cd49c Mon Sep 17 00:00:00 2001 From: Corey Hemminger Date: Mon, 4 Mar 2024 07:49:02 -0600 Subject: [PATCH] test --- recipes/chef_automatev2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/chef_automatev2.rb b/recipes/chef_automatev2.rb index 473a2ae..ac6d3e0 100644 --- a/recipes/chef_automatev2.rb +++ b/recipes/chef_automatev2.rb @@ -25,7 +25,7 @@ node['chef_software']['automatev2_local_users']&.each do |name, hash| iam_user name do user_hash hash['user_json'] - api_token lazy { kitchen? ? kitchen_create_api_token('test_user') : node['chef_software']['automate_admin_token'] } + api_token lazy { kitchen? ? shell_out("chef-automate iam token create test_user --admin").stdout.strip : node['chef_software']['automate_admin_token'] } action :create end end