Hi my name isXXXXX will assist you.
The CDI is not the problem. Capacitor Discharge Ignition. The CDI unit holds the electricity produced from the stator. Then the trigger tells the CDI to release this contained electricity to fire the coil ten to fire the spark plug.
The problem you have is the sending unit in the oil tank this is a float switch that turns the oil pump on when the oil level gets low. If the float quits sending the low oil signal the oil pump in the main tank will not come on filling the oil tank.
Check the harness connections at the main oil tank in the oat to be sure there is no corrosion, if no corrosion replace the sending unit in the oil tank on the engine.
Post back with questions.