class ChefCLI::Policyfile::RevIDLockDataMap

def cbs_with_differing_ids

def cbs_with_differing_ids
  cbs_with_differing_ids = Set.new
  all_cookbook_names.each do |cookbook_name|
    all_identifiers = lock_info_by_rev_id.inject(Set.new) do |id_set, (_rev_id, rev_info)|
      cookbook_lock = rev_info["cookbook_locks"][cookbook_name]
      identifier = cookbook_lock && cookbook_lock["identifier"]
      id_set << identifier
    end
    cbs_with_differing_ids << cookbook_name if all_identifiers.size > 1
  end
  cbs_with_differing_ids
end