Skip to content

Commit 8e8e724

Browse files
committed
Add exit language
1 parent e1d76b8 commit 8e8e724

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/post/windows/manage/priv_migrate.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ def run
4949
@original_name = client.sys.process.open.name
5050
print_status("Current session process is #{@original_name} (#{@original_pid}) as: #{client.sys.config.getuid}")
5151
unless migrate_admin
52-
return if is_admin? && datastore['NOFAIL']
52+
if is_admin? && !datastore['NOFAIL']
53+
print_status("NOFAIL set to false, exiting module.")
54+
return
55+
end
5356
migrate_user
5457
end
5558
end

0 commit comments

Comments
 (0)