Skip to content

Commit 0d7ef6f

Browse files
committed
Pass username as symbol
1 parent fc35a53 commit 0d7ef6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/credentials/smartermail.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def get_smartermail_creds(path)
140140
username = data.match(/<sysAdminUserName>(.+)<\/sysAdminUserName>/)
141141
password = data.scan(/<(sysAdminPassword|sysAdminPasswordHash)>(.+)<\/(sysAdminPassword|sysAdminPasswordHash)>/).flatten[1]
142142

143-
result['username'] = username[1] unless username.nil?
143+
result[:username] = username[1] unless username.nil?
144144

145145
if password
146146
begin

0 commit comments

Comments
 (0)