bin/pwn_bdba_groups in pwn-0.4.761 vs bin/pwn_bdba_groups in pwn-0.4.762
- old
+ new
@@ -51,12 +51,11 @@
if list_group_name || parent_group_name
groups_resp = PWN::Plugins::BlackDuckBinaryAnalysis.get_groups(
token: token
)
- group_arr = groups_resp[:groups].select { |g| g[:name] == list_group_name }
-
- unless group_arr.nil?
+ unless group_resp.nil?
+ group_arr = groups_resp[:groups].select { |g| g[:name] == list_group_name }
group_arr_sorted = group_arr.sort_by { |g| g[:id] }
group_id = group_arr_sorted.last[:id]
if list_group_name
group_details_resp = PWN::Plugins::BlackDuckBinaryAnalysis.get_group_details(