Skip to content

Commit 0fcba5e

Browse files
authored
Land rapid7#17970, Fix rapid7#17969 Assign empty hash to variable status
2 parents 5ea6340 + d91a963 commit 0fcba5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/nessus.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,7 @@ def cmd_nessus_db_import(*args)
11901190
if is_scan_complete(scan_id)
11911191
print_status("Exporting scan ID #{scan_id} is Nessus format...")
11921192
export = @n.scan_export(scan_id, 'nessus')
1193+
status = {}
11931194
if export['file']
11941195
file_id = export['file']
11951196
print_good("The export file ID for scan ID #{scan_id} is #{file_id}")
@@ -1485,6 +1486,7 @@ def cmd_nessus_scan_export(*args)
14851486
end
14861487
if format.in?(['nessus', 'html', 'pdf', 'csv', 'db'])
14871488
export = @n.scan_export(scan_id, format)
1489+
status = {}
14881490
if export['file']
14891491
file_id = export['file']
14901492
print_good("The export file ID for scan ID #{scan_id} is #{file_id}")
@@ -1526,6 +1528,7 @@ def cmd_nessus_scan_export_status(*args)
15261528
when 2
15271529
scan_id = args[0]
15281530
file_id = args[1]
1531+
status = {}
15291532
loop do
15301533
status = @n.scan_export_status(scan_id, file_id)
15311534
print_status('Export status: ' + status['status'])

0 commit comments

Comments
 (0)