Skip to content

Commit 1cdcd3c

Browse files
committed
Use a more consistent format in Rex table and loot for memcache
1 parent 0d4d06f commit 1cdcd3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/gather/memcached_extractor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def data_for_keys(keys = [])
9494
data << data_part
9595
break if data_part =~ /^END/
9696
end
97-
all_data[key] = data
97+
all_data[key] = data.join
9898
end
9999
all_data
100100
end
@@ -139,7 +139,7 @@ def run_host(ip)
139139
'Indent' => 1,
140140
'Columns' => [ 'Key', 'Value' ]
141141
)
142-
data.take(print_keys).each { |r| result_table << r }
142+
data.take(print_keys).each { |key, value| result_table << [key, value.inspect] }
143143
print_line
144144
print_line("#{result_table}")
145145
unless localhost?(ip)

0 commit comments

Comments
 (0)