class ChefCLI::PolicyfileServices::RmPolicy

def policy_groups_using_revision(revision_id)

def policy_groups_using_revision(revision_id)
  groups = []
  policy_group_data.each do |group_name, group_info|
    next unless group_info.key?("policies") && !group_info["policies"].empty?
    next unless group_info["policies"].key?(policy_name)
    next unless group_info["policies"][policy_name]["revision_id"] == revision_id
    groups << group_name if group_info
  end
  groups
end