bin/pwn_bdba_scan in pwn-0.4.757 vs bin/pwn_bdba_scan in pwn-0.4.758

- old
+ new

@@ -63,10 +63,11 @@ groups_resp = PWN::Plugins::BlackDuckBinaryAnalysis.get_groups( token: token ) - parent_id = groups_resp[:groups].find { |g| g[:name] == parent_group_name }[:id] + parent = groups_resp[:groups].select { |g| g[:name] == parent_group_name } + parent_id = parent.last[:id] unless parent.empty? PWN::Plugins::BlackDuckBinaryAnalysis.upload_file( token: token, file: target_file, group_id: parent_id