diff options
Diffstat (limited to 'test/lib/puppettest/support/utils.rb')
-rw-r--r-- | test/lib/puppettest/support/utils.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lib/puppettest/support/utils.rb b/test/lib/puppettest/support/utils.rb index f23c6483b..7491095de 100644 --- a/test/lib/puppettest/support/utils.rb +++ b/test/lib/puppettest/support/utils.rb @@ -64,10 +64,10 @@ module PuppetTest::Support::Utils def set_mygroup # retrieve the user name group = %x{groups}.chomp.split(/ /)[0] - unless group - raise "Could not find group to set in @mygroup" - end - @mygroup = group + unless group + raise "Could not find group to set in @mygroup" + end + @mygroup = group end def run_events(type, trans, events, msg) |