Add if statement to avoid duplicate elements in "funcs" list

Change-Id: I1c1aabe95c4cae1b88fbca3dad62c19d61d19335
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1023699
Signed-off-by: hadong <hadong0720@gmail.com>