There should be a third connection on the switch which would go to ground. Just make sure you use an ohm meter to determine which one is the light connection and which is the 12V switched feed. The light connection will show a connection to the switched terminal of the switch when open and to the feed when shut. On some switches the light ground is a smaller blade.