diff --git a/acceptance/tests/ticket_4110_puppet_apply_should_not_create_a_user_that_already_exists.rb b/acceptance/tests/ticket_4110_puppet_apply_should_not_create_a_user_that_already_exists.rb index 147857362..1d7db2318 100644 --- a/acceptance/tests/ticket_4110_puppet_apply_should_not_create_a_user_that_already_exists.rb +++ b/acceptance/tests/ticket_4110_puppet_apply_should_not_create_a_user_that_already_exists.rb @@ -1,7 +1,8 @@ test_name "#4110: puppet apply should not create a user that already exists" agents.each do |host| - apply_manifest_on(host, "user { 'root': ensure => 'present' }") do - assert_no_match(/created/, stdout, "we tried to create root on #{host}" ) + user = host['user'] + apply_manifest_on(host, "user { '#{user}': ensure => 'present' }") do + assert_no_match(/created/, stdout, "we tried to create #{user} on #{host}") end end