Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stromweld committed Mar 4, 2024
1 parent d8f2a65 commit 3c9f0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/chef_automatev2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c9f0d5

Please sign in to comment.