Oil light not working

I’d say it’s not ground where I mounted it to the oil filter adapter. Which is insulated by gaskets.