Fix problem with mac /locations_id on switch inventory. closes #2756