Rattling bonnet release cable

I have been plagued for a long time to establish where a rattle was coming from which I thought was from inside the front of the passenger side.
Whilst checking the fuel pipe recently that runs parallel with this cable under the bonnet I noticed how easy it rattled around inside the inner wing leading up to the bonnet release pull knob.
I slit the length of a spare 6" length of fuel pipe and slid it over the cable and moved it back into the inner wing. It then provided enough weight on the cable to stop it rattling.