functions: Let persist return the correct retval

Change-Id: I7ad0559c926331e74bad6fe352574749b35ce8ce
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>