lib/beaker/host/aix/user.rb in beaker-3.37.0 vs lib/beaker/host/aix/user.rb in beaker-4.0.0
- old
+ new
@@ -17,9 +17,10 @@
def user_get(name, &block)
execute("lsuser #{name}") do |result|
fail_test "failed to get user #{name}" unless result.stdout =~ /^#{name} id/
yield result if block_given?
+ result
end
end
def user_present(name, &block)
execute("if ! lsuser #{name}; then mkuser #{name}; fi", {}, &block)