Skip to content

Commit eeb1bdc

Browse files
author
Brent Cook
committed
Land rapid7#7731, fix risk score and risk factor imports via nexpose plugin
Merge remote-tracking branch 'upstream/pr/7731' into upstream-master
2 parents 9e75866 + 02cbbfd commit eeb1bdc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rapid7/nexpose.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,8 @@ def site_listing
553553
res << {
554554
:site_id => site.attributes['id'].to_i,
555555
:name => site.attributes['name'].to_s,
556-
:risk_factor => site.attributes['risk_factor'].to_f,
557-
:risk_score => site.attributes['risk_score'].to_f,
556+
:risk_factor => site.attributes['riskfactor'].to_f,
557+
:risk_score => site.attributes['riskscore'].to_f,
558558
}
559559
end
560560
return res
@@ -595,8 +595,8 @@ def site_device_listing(site_id)
595595
res << {
596596
:device_id => device.attributes['id'].to_i,
597597
:address => device.attributes['address'].to_s,
598-
:risk_factor => device.attributes['risk_factor'].to_f,
599-
:risk_score => device.attributes['risk_score'].to_f,
598+
:risk_factor => device.attributes['riskfactor'].to_f,
599+
:risk_score => device.attributes['riskscore'].to_f,
600600
}
601601
end
602602
return res

0 commit comments

Comments
 (0)