nessus 0.1.0.beta.14 → 0.1.0.beta.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nessus/client/report.rb +6 -2
- data/lib/nessus/version.rb +1 -1
- metadata +1 -1
data/lib/nessus/client/report.rb
CHANGED
@@ -116,8 +116,12 @@ module Nessus
|
|
116
116
|
|
117
117
|
# @return [Array<Hash>] reports by readablename regex
|
118
118
|
def report_find_by_name(name)
|
119
|
-
report_list.
|
120
|
-
|
119
|
+
if report_list.is_a? Array
|
120
|
+
report_list.find_all do |report|
|
121
|
+
report['name'] == name
|
122
|
+
end
|
123
|
+
elsif report_list['name'] == name
|
124
|
+
[report_list]
|
121
125
|
end
|
122
126
|
end
|
123
127
|
|
data/lib/nessus/version.rb
CHANGED